javascript styleSheet owningElement

owningElementNN n/a IE 4 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.


1955,Nickname,Homepage or email,Comments here,Add comment