下面那个点击“跳转”怎么让它弹出我们填的内容 表单如下
<html>
</head> <body>
<form id="form1" name="form1" method="post" action="">
<input type="text" name="textfield" />
<a href="6.html">跳转 </a>
</form>
<script type="text/javascript">
alter(form1.textfield.value);
</script>
</body>
</html>
<html>
</head> <body>
<form id="form1" name="form1" method="post" action="">
<input type="text" name="textfield" />
<a href="6.html">跳转 </a>
</form>
<script type="text/javascript">
alter(form1.textfield.value);
</script>
</body>
</html>
<html>
<head>
<script type="text/javascript">
function test(){
alert(form1.textfield.value);
}
</script>
</head> <body>
<form id="form1" name="form1" method="post" action="">
<input type="text" name="textfield" />
<a href="6.html" onclick="test();">跳转 </a>
</form> </body>
</html>