SyntaxFix
Write A Post
Hire A Developer
Questions
This might help you.
ParentID = pDoc.offsetParent; alert(ParentID.id);