<body>
<form name = "myform" methed = "post" action = "index.html">
<input type="text" name = "t" value = "FirstName">
</form>
</body>
在取文本中名为t 的值.
<script>
var temp;
temp = document.myform.t.value;
alert("The t value is : "+temp);
</script>
<form name = "myform" methed = "post" action = "index.html">
<input type="text" name = "t" value = "FirstName">
</form>
</body>
在取文本中名为t 的值.
<script>
var temp;
temp = document.myform.t.value;
alert("The t value is : "+temp);
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货