href and doNavigate
what is the difference betweeen using normal <A HREF> tag and using EPCM.doNavigate() to redirect to some page?
Deepak Kumar replied
<A HREF> tag is used to link to a file on a Web server, As long as you know the URL for a file, you can create a link to it. And as user click on it will open the link.
Well for your information
We can use the combination of both an dit has been used in Portal also,
The solution implemented for secondary links in the portal component uses a combination of a HTML hyperlink and a call of a EPCF service method EPCM.doNavigate().
<A HREF="myLink" onclick="return EPCM.doNavigate('target')">
This is HTML Link</A>
The String parameter target represents the location of an iView or a page in the role. The value is available from the portal content catalog.
Hope this clear your doubt.
PS: If helpful award points.