Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internal anchor with base href
Message
From
07/10/2002 06:26:44
 
 
To
04/10/2002 18:07:04
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00707982
Message ID:
00708297
Views:
11
This message has been marked as the solution to the initial question of the thread.
>When using a base href in a page, if you link a link to an internal anchor, as you have a base href, this will make the internal anchor to be searched from the base href location and not within the current document. Anyone found a workaround for that in the syntax of the A HREF tag?

The base href only affects relative URI's, what you need to do is give an absolute URI as the href. The following may work :
<a href="" onclick="this.href=document.location+'#localanchor'">Local Link</a>
...
...
<a name="localanchor">
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform