Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting BASE tag href attribute using expression
Message
From
03/04/2003 15:12:53
 
 
To
All
General information
Forum:
Internet
Category:
Javascript
Title:
Setting BASE tag href attribute using expression
Miscellaneous
Thread ID:
00773756
Message ID:
00773756
Views:
62
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
Reply
Map
View

Click here to load this message in the networking platform