编辑下面的代码:【加编码】
<html> <head> <script> function removeBorder() { document.getElementById("myframe").frameBorder="0"; } </script> </head> <body> <iframe id="myframe" src="http://ziqiangxuetang.com"> <p>Your browser does not support iframes.</p> </iframe> <br><br> <input type="button" onclick="removeBorder()" value="Remove border"> <p><b>Note:</b> This example does not work in Internet Explorer.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂