Assuming you have the following HTML:
<div>
<iframe src="..">
<!-- The following would be the content of the iframe -->
<html><head></head><body>
<span>I'm the node</span>
</body></html>
</iframe>
</div>
And you have a variable iframeNode
containing the <span>
element within that iframe. Your script context is the parent window.
How would you get the parent iframe element:
<iframe src="..."></iframe>
by this node?
In theory:
var iframe = iframeNode.myParentIframeElementInTheParentScope;