Scrolling Parent Page When Remote Content Loads In Iframe
I'm working on a website that loads remote content (real estate property listings) in an iframe on the main page. The issue being that the frames are quite long, and the navigation
Solution 1:
Put javascript like <iframe srcStuff onLoad="scrollMeUp();">
And in <head>
following code:
functionscrollMeUp() {
window.scroll(0,0);
}
If that doesn't work try debugging with alert, check what does window refer to, is it iframe or parent, or this function might not work on all browser, but I am not sure about that.
Post a Comment for "Scrolling Parent Page When Remote Content Loads In Iframe"