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

Click here to load this message in the networking platform