How in js to address to the child document which is in the built-in frame (the iframe element)?

  • In my opinion this cannot be done - Rules

1 answer 1

Appeal to document:

document.getElementsByTagName('iframe')[0].contentDocument 

Appeal to window:

 document.getElementsByTagName('iframe')[0].contentWindow 

Please note that the pages must be on the same domain, port, and scheme (protocol)!