Javascript Reference
Categories: LINK

javascript LINK href

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

Read/Write  

Provides the URL specified by the element's href attribute. In IE/Windows, you can assign a new URL to this property to load in an alternate style sheet after the fact.

 
Example
 
document.getElementById("styleLink").href = "altStyles.css";
 
Value

String of complete or relative URL.

 
Default

None.


Powered by Linode.