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>