-1

My javascript is embedded in the iframe itself, and I don't have access to the main html that is implementing it.

Basically, that is what's going on:

<html>
    <head>
    </head>
    <body>
       <iframe id='1' src='myscript.js'/>
    </body>
</html>

Now, I want a way to see where the iframe is in relation to the entire html, and/or in relation to the browser window itself, as I would with: How to tell if a DOM element is visible in the current viewport?

Community
  • 1
  • 1

1 Answers1

0

it depends very much on how you're setting the position. Is there any code you can share so we can find out how to do it?

Cheers

bribeiro
  • 709
  • 5
  • 5