Javascript Reference
Categories: styleSheet

javascript styleSheet owningElement

@March 15, 2008, 1:22 a.m.
owningElementFirefox/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.


Powered by Linode.