代码:
<html>
<head><title>title</title>
<script language="javascript">
function _submit(){
document.form1.action = "http://www.google.com";;
document.form1.method = "get"; //post
document.form1.target = "_blank"; //_self //_parent //_top
document.form1.submit();
document.form1.action = "http://www.baidu.com";;
document.form1.method = "get"; //post
document.form1.target = "_blank";//_self //_parent //_top
document.form1.submit();
}
</script>
</head>
<body>
<input type="submit" name="Submit" value="提交" onclick="_submit()">
<form name=form1>
</form>
</body>
</html>