parentElement property
Retrieves the parent object in the object hierarchy.
Syntax
| JavaScript | |
|---|
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
Always use parentNode instead of parentElement
parentNode is standard and supported by most browsers, parentElement is proprietary
- 2/14/2008
- Michael Freidgeim
- 7/6/2009
- Ajay Ace