Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internal anchor with base href
Message
From
07/10/2002 11:45:46
 
 
To
07/10/2002 06:26:44
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00707982
Message ID:
00708390
Views:
15
>>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">
>
Yes, that's a good idea. In those specific situations, I may use that technique. Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform