Javascript Reference
Categories: Attr

javascript Attr ownerElement

@July 27, 2008, 8:53 a.m.
ownerElement Firefox/Netscape/NN 6 IE n/a Chrome/Safari/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


Powered by Linode.