javascript Node ownerDocument

ownerDocumentNN 6 IE 5(Mac)/6(Win) DOM 1  

Read-only  

Returns a reference to the document object that contains the current node. Potentially helpful for functions that act on object references retrieved from event properties or passed as ID strings. The corresponding IE property is document.

 
Example
 
var currDoc = document.getElementById("elementID").ownerDocument;
 
Value

document object reference.

 
Default

The current document object.


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