Javascript Reference
Categories: LINK

javascript LINK Description

@Aug. 17, 2009, 9:14 a.m.
link Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  



The link object reflects the link element. Note that many of the properties listed here are not available for scripting in the object unless their corresponding attributes are set initially in the HTML tag. Moreover, because the element's attributes act as directives while the document loads, assigning new values to the corresponding properties generally has no effect (even though the properties are read/write). This includes: href, rel, rev, and type. The media property is not available in the Macintosh version of IE 4. As a reminder, the disabled property lets all supporting browsers turn on and off a linked style sheet.

HTML Equivalent
Object Model Reference
Object-Specific Properties
charset href hreflang media rel
rev sheet styleSheet target type
Object-Specific Methods


Object-Specific Event Handler Properties
Handler Firefox/Netscape/NN IE/Windows IE/Mac Chrome/Safari/DOM
onerror n/a 4 n/a n/a
onload n/a 4 n/a n/a

Powered by Linode.