javascript styleSheet owningElement
@March 15, 2008, 1:22 a.m.
owningElement | Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a |
Read-only | |
Returns a reference to the style or link element object that defines the current styleSheet object. Each document maintains a collection of style sheets created with both the style and link elements. The comparable Netscape 6 property is ownerNode. |
|
Example | |
var firstStyleID = document.styleSheets[0].owningElement.id; |
|
Value | |
Element object reference. |
|
Default | |
None. |
Permanent URL:
http://javascript.gakaa.com/stylesheet-owningelement.aspx
Powered by Linode.