实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script>
5
function removeBorder()
6
{
7
document.getElementById("myframe").frameBorder="0";
8
}
9
</script>
10
</head>
11
<body>
12
13
<iframe id="myframe" src="https://shouce.ren">
14
<p>Your browser does not support iframes.</p>
15
</iframe>
16
<br><br>
17
18
<input type="button" onclick="removeBorder()" value="Remove border">
19
20
<p><b>Note:</b> This example does not work in Internet Explorer.</p>
21
22
</body>
23
</html>
24