案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<form>
5
<input type="hidden" id="hidden1" name="hidden1" />
6
</form>
7
8
<p>The name of the hidden field is:
9
<script type="text/javascript">
10
alert(document.getElementById("hidden1").name)
11
</script></p>
12
13
</body>
14
</html>
15