<html>
<head>
<script>
function go() {
var url="http://www.188029.net";
document.form1.action = url;
document.form1.submit();
}
</script>
<title>把form的action写在js中</title>
</head>
<body>
<form name="form1" method="post" action="">
<table>
<tr>
<td><input type="text" name="a")></td>
</tr>
<tr>
<td><input type="button" value="查查!" οnclick=go()></td>
</tr>
</table>
</form>
</body>
</html>
把form的action写在js中
最新推荐文章于 2022-11-08 14:19:12 发布