W3Schools.com

IFrame scrolling Property

IFrame Object Reference IFrame Object

Definition and Usage

The scrolling property sets or returns whether or not an iframe should have scrollbars.

Syntax

iframeObject.scrolling=yes|no


Example

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 »


IFrame Object Reference IFrame Object
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE