案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
<iframe src="/example/hdom/frame_a.html" id="frame1" marginwidth="50"></iframe>
4
<br /><br />
5
6
<script type="text/javascript">
7
x=document.getElementById("frame1");
8
document.write("Left and right margins of the iframe are: ");
9
document.write(x.marginWidth);
10
</script>
11
12
</body>
13
</html>
14