HTML DOM scrolling Property
Complete IFrame Object Reference
Definition and Usage
The scrolling property sets or returns whether or not an iframe should have
scrollbars.
Syntax
iframeObject.scrolling=yes|no
|
Example
The following example adds and removes scrollbars from the 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>
|
Try-It-Yourself Demos
Add
and remove scrollbars from an <iframe> element
Complete IFrame Object Reference
|