<form name=form1 onsubmit="return ondel()"><input type=submit name='ins_rec' value='刪除' >
<input type=text value=''></form>
<script>
function ondel()
{
var istrue;
istrue=confirm ('要刪除這幾條記錄嗎?');
if (!istrue)
{
return false;
}
}
</script>
<input type=text value=''></form>
<script>
function ondel()
{
var istrue;
istrue=confirm ('要刪除這幾條記錄嗎?');
if (!istrue)
{
return false;
}
}
</script>
解决方案 »
- IE7不支持这个JS,请大神帮忙解决
- 2个JS脚本有冲突,页面执行任何一个都是正常的,把两个放一起就报错
- 时下最流行的双击处于编辑状态更新数据库的方法
- 偶然发现论坛可以注入脚本
- 关于Button和Div的从属性问题,也许不可能解决!
- window.open的问题,高手帮忙阿~~~
- 运行树的时候出现的问题
- var now = new Date(); 这个now 到底是变量还是新的对象?
- http://msdn.microsoft.com/default.asp这个网站为什么源文件显示不出来啊
- 百度地图API,标注问题
- 怎么取得某个网页内的图片、flash、JSsrc文件地址,详见描述
- 急求!日期脚本!要求详见本贴内容!
<form name=form1 onsubmit="return ondel();">
<input type=submit name='ins_rec' value='刪除'>
<input type=text value=''></form>
<script>
function ondel()
{
return confirm('要刪除這幾條記錄嗎?');
}
</script>
<input type=text value=''></form>
<script>
function ondel()
{
var istrue;
istrue=confirm ('要刪除這幾條記錄嗎?');
if (istrue)
{
form1.ins_rec.submit();
}
else
{
return false;
}
}
</script>