案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript">
4
function addScrollbars()
5
  {
6
  document.getElementById("frame1").scrolling="yes";
7
  }
8
function removeScrollbars()
9
  {
10
  document.getElementById("frame1").scrolling="no";
11
  }
12
</script>
13
</head>
14
15
<body>
16
<iframe src="/example/hdom/frame_a.html" id="frame1" ></iframe>
17
<br />
18
<input type="button" onclick="addScrollbars()" value="Add Scrollbars" />
19
<input type="button" onclick="removeScrollbars()" value="Remove Scrollbars" />
20
</body>
21
</html>