I need to know if the document element is the ROOT node of the page. For example:
<html> <-- ROOT Node
<head></head>
<body>
<iframe>
<html>...</html> <-- other document
</iframe>
<iframe>
<html>...</html> <-- other document
</iframe>
</body>
</html>
Javascript that is executed in iframe 1 or 2 should know if their document node is the root node.
Hope you can help me.