ownerDocument

calendar March 10, 2010

Value: Document object reference

Compatibility: WinIE6+, MacIE5+, Moz1+, Safari1+

The ownerDocument property belongs to any element or node in the W3C DOM. The property’s value is a reference to the document node that ultimately contains the element or node. If a script encounters a reference to an element or node, the object’s ownerDocument property provides a way to build references to other objects in the same document or to access properties and methods of the document objects.

Example:

document.body.childNodes[5].ownerDocument

The result is a reference to the document object. You can use that to inspect a property of the document,

document.body.childNodes[5].ownerDocument.URL

This returns the document.URL property for the document that owns the child node.

Related Item: document object.

admin

2 Responses to “ownerDocument”

  1. JIMMY Says:


    PillSpot.org. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. Online Pharmacy. Order pills online

    Buy:100% Pure Okinawan Coral Calcium.Arimidex.Synthroid.Zyban.Prednisolone.Lumigan.Accutane.Human Growth Hormone.Zovirax.Prevacid.Actos.Nexium.Mega Hoodia.Retin-A.Valtrex.Petcam (Metacam) Oral Suspension….

  2. DWIGHT Says:


    MedicamentSpot.com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. No prescription drugs. Order drugs online

    Buy:VPXL.Cialis Soft Tabs.Cialis Professional.Soma.Viagra Soft Tabs.Maxaman.Super Active ED Pack.Viagra Professional.Cialis Super Active+.Cialis.Zithromax.Viagra Super Active+.Tramadol.Viagra.Viagra Super Force.Levitra.Propecia….

Leave a Reply

You must be logged in to post a comment.