On my site i am displaying an external site in a frame e.g (www.wikipedia.org), i would like it to automatically scroll down half the page or a quarter of the page down, i cannot use anchors because it is a dynamic page, how can i do this.
Thanks
On my site i am displaying an external site in a frame e.g (www.wikipedia.org), i would like it to automatically scroll down half the page or a quarter of the page down, i cannot use anchors because it is a dynamic page, how can i do this.
Thanks
This question can be addressed using JavaScript. And in particular thescrollBy(int horizontal, int vertical)method.
Theoretically this code, should work (it does with Safari), but you would have to iron it out to have it work across browsers.
TheCode:<body onload="window.frames['Wikipedia_Frame'].scrollBy(0, 800)"> <iframe name="Wikipedia_Frame" id="Wikipedia_Frame" src="http://en.wikipedia.com" width="800" height="300"> Sorry, your browser doesn't support iframes. </iframe> </body>window.frames['Wikipedia_Frame'].scrollBy(0, 800)call scrolls the Wikipedia_Frame down by 800 pixels.
Bookmarks