Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

href and doNavigate

what is the difference betweeen using normal <A HREF> tag and using EPCM.doNavigate() to redirect to some page?


Former Member

hi Shiva,

<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.

EPCM.doNavigate() is a navigation API and uised to navigate inside the portal. But the only difference is that EPCF works only for <b>content from same domain</b>. This is actually limitation of javascript and hence EPCF.

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.


0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question