Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internal anchor with base href
Message
De
07/10/2002 11:45:46
 
 
À
07/10/2002 06:26:44
Information générale
Forum:
Internet
Catégorie:
HTML
Divers
Thread ID:
00707982
Message ID:
00708390
Vues:
16
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform