W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <script type="text/javascript"> function removeBorder() { document.getElementById("frame1").frameBorder="0"; } function restoreBorder() { document.getElementById("frame1").frameBorder="1"; } </script> </head> <body> <iframe src="/example/hdom/frame_a.html" id="frame1"></iframe> <br /><br /> <input type="button" onclick="removeBorder()" value="Remove border" /> <input type="button" onclick="restoreBorder()" value="Restore border" /> </body> </html>