ویژگی‌های اسکرولینگ HTML DOM

تعریف و استفاده

ویژگی scrolling می‌تواند برای تنظیم یا بازگرداندن اینکه iframe دارای نوار اسکرول (استراتژی اسکرول) است یا خیر تنظیم شود.}

نحوه استفاده

iframeObject.scrolling=auto|yes|no

مثال

در اینجا مثالی برای افزودن و حذف نوارهای اسکرول 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>