[Javascript] Name attribute for link

Nazir Wasim Ahmed nazirwa at sakinfotech.co.in
Sat Nov 29 03:43:50 CST 2003


Hi All,

How can i change the stylesheet name(href) of my page dynamically?
I need to change the stylesheet name when a combo is selected..

I tried giving something like
<link href="" name="mylink">

and then on body load i tried changing the href to another location
document.forms[0].mylink.href="\someotherlocation";

this dosen't seem to work.
what am i missing?

Thanx in advance

Nazir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20031129/5802661f/attachment.htm>


More information about the Javascript mailing list