首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

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

2012-03-19 
请教表单按钮跳出(确定取消对话框)的问题,在线等!!!表单里的普通按钮,不是递交按钮inputtype buttom n

请教表单按钮跳出(确定取消对话框)的问题,在线等!!!
表单里的普通按钮,不是递交按钮
<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>

热点排行