Javascript Reference
Categories: styleSheet

javascript styleSheet href

@March 15, 2008, 1:22 a.m.
hrefFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

Read/Write  

This is the URL specified by a link element's href attribute (when the link is used to import a style sheet). This value is read/write in IE for Windows, but read-only in Netscape 6 and IE/Mac.

 
Example
 
document.styleSheets[1].href = "css/altStyles.css";
 
Value

String of complete or relative URL.

 
Default

None.


Powered by Linode.