87,910
社区成员
发帖
与我相关
我的任务
分享
<script>
function sub1(url){
document.form1.action = url;
document.form1.submit();
}
</script>
<form name="form1" method="post">
<input type="button" name="button" onclick="return sub1('aa.asp')"/>
</form>
<script>
function sub(url){
document.form1.aciton = url;
document.form1.submit();
return true;//-------
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1 </title>
<script>
function sub(url)
{
document.form1.action = url;
document.form1.submit();
}
</script>
</head>
<body>
<form name="form1" action="" method="post" enctype="multipart/form-data" >
<input type="button" name="button" onclick="sub('http://www.baidu.com');return false;"/>
</form>
</body>
</html>