<!DOCTYPE html>
<html>
<head>
<title>通过一般按钮提交</title>
<meta charset="UTF-8"/>
</head>
<body>
<form action="" method="get" id="form1">
<input type="text" name="username"></input>
<input type="button" value="ok" name="sb" onclick="submit1();">
</form>
<script type="text/javascript">
function submit1()
{
var form1 = document.getElementById("form1");
form1.action = " bjpowernode.html";
form1.submit();
}
</script>
</body>
</html>