Jump to content

Certain spot in iFrame


Recommended Posts

  • 2 weeks later...

If the page of the iframe is part of the same domain, you can use the scrollTo() method:

var f = document.getElementById("myframe"); if(f.contentWindow) f = f.contentWindow;f.scrollTo(0,400)

If it's not in the same domain, there's nothing you can do.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...