HTML DOM Scrolling Attribute
Definition and Usage
The scrolling attribute can set or return whether the iframe has scrollbars (scrolling policy).
Syntax
iframeObject.scrolling=auto|yes|no
Example
The following example demonstrates how to add and remove scrollbars for iframe:
<html> <head> <script type="text/javascript"> function addScrollbars() {document.getElementById("frame1").scrolling="yes";
} function removeScrollbars() {document.getElementById("frame1").scrolling="no";
} </script> </head> <body> <iframe src="frame_a.htm" id="frame1" ></iframe><br /> <input type="button" onclick="addScrollbars()" /> value="Add Scrollbars" /> <input type="button" onclick="removeScrollbars()" /> value="Remove Scrollbars" /> </body> </html>