表单里的普通按钮,不是递交按钮
<input type= "buttom " name= "lj " >
要求点击后跳出一个对话框,选择 "确定 ",则跳转页面到check.asp页面
------解决方案--------------------
用submit也可以
<input type= "submit " name= "lj " onclick= "return confirm( '真的要提交吗? '); ">
比button方便多了。
------解决方案--------------------
<input type= "buttom " name= "lj " onclick= "con() ">
<script>
con()
{
if(confirm( "跳转页面到check.asp页面 "))
{
location.href = "check.asp " ;
}
}
</script>
------解决方案--------------------
<form name= "form1 " method= "post " action= "check.asp ">
<input type= "button " name= "lj " onclick= "if(confirm( '真的要提交吗? ')){window.form1.submit;}else{return false;} "/>
</form>