当前位置: 代码迷 >> ASP >> 请问表单按钮跳出(确定取消对话框)的有关问题,
  详细解决方案

请问表单按钮跳出(确定取消对话框)的有关问题,

热度:85   发布时间:2012-03-19 22:03:04.0
请教表单按钮跳出(确定取消对话框)的问题,在线等!!!
表单里的普通按钮,不是递交按钮
<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>
  相关解决方案