Scrolling IFRAME Example
Scrolling IFRAME JavaScript Example
frames, or inline frames, allow you to load html files into an existing document. Internet Explorer 4+, Netscape 6+, Firefox, Mozilla, Opera and other modern browsers all support iframes.
New html documents can be loaded into the iframe without disrupting the rest of the document. CSS and JavaScript can be used to manipulate properties of the iframe, such as its position and size. JavaScript can also be used to communicate between the document containing the iframe and the document loaded inside it.
Below is an example of moving and iframes contents using the JavaScript scrollBy function.
The Code
Because of JavaScript security issues it will only work if you put it on a server.