Ads
JavaScript 代码实例
查看JavaScript的代码实例源码, 并使用JS参考的在线编程调试工具
源代码
x
<html>
<head>
<meta charset="utf-8">
<title>开发测试教程(devqa.cn)</title>
<script>
function aboveFrames(){
document.getElementById('myTable').frame="above";
}
function belowFrames(){
document.getElementById('myTable').frame="below";
}
</script>
</head>
<body>
<table id="myTable">
<tr>
<td>100</td>
<td>200</td>
</tr>
<tr>
<td>300</td>
<td>400</td>
</tr>
</table>
<br>
<input type="button" onclick="aboveFrames()" value="显示上frames">
<input type="button" onclick="belowFrames()" value="显示下frames">
</body>
</html>