Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting BASE tag href attribute using expression
Message
De
03/04/2003 15:12:53
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
Javascript
Titre:
Setting BASE tag href attribute using expression
Divers
Thread ID:
00773756
Message ID:
00773756
Vues:
61
I need to set the HTML < base href= ...> tag programmatically in IE 6 from javascript.

I tried the following code but this causes syntax error.
How to construct < base href= ... > attribute from location.protocol and
location.host ?

< head >
< base href="javascript:location.protocol+'//'+location.host+
'/mycgi.exe/'" >
< /head >
Andrus
Répondre
Fil
Voir

Click here to load this message in the networking platform