2 out of 10 rated this helpful - Rate this topic

parentElement property

Retrieves the parent object in the object hierarchy.

Syntax

JavaScript

p = object.parentElement

Property values

Type: Object

the parent.

Remarks

The topmost object returns null as its parent.

 

 

Send comments about this topic to Microsoft

Build date: 2/14/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Always use parentNode instead of parentElement
parentNode is standard and supported by most browsers, parentElement is proprietary