W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<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="/example/hdom/frame_a.html" id="frame1" ></iframe> <br /> <input type="button" onclick="addScrollbars()" value="Add Scrollbars" /> <input type="button" onclick="removeScrollbars()" value="Remove Scrollbars" /> </body> </html>