cclloyd9785 Posted September 3, 2011 Share Posted September 3, 2011 Is it possible to have it automatically scrolled to a certain part of a page in iFrame?Like say the part I want to be shown is 400px down, and 500px to the left. How can I make it so that it shows it there? Link to comment Share on other sites More sharing options...
cclloyd9785 Posted September 13, 2011 Author Share Posted September 13, 2011 bump Link to comment Share on other sites More sharing options...
Ingolme Posted September 13, 2011 Share Posted September 13, 2011 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.