javascript Attr ownerElement

ownerElement NN 6 IE n/a DOM 2  

 

Read-only  

Refers to the element that contains the current attribute object. Until a newly created attribute is inserted into an element, this property is null.

 
Example
 
if (myAttr.ownerElement.tagName == "fred") {
 // process attribute of  element
}
 
Value

Element node reference.

 
Default

null


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