在桌面上新建个文件a.htm
<input type=button value="关闭" onclick="if(confirm('是否关闭')){window.opener=null;window.close()}">
<body onunload="if(!confirm('是否关闭')){window.open('a.htm')}">
<input type=button value="关闭" onclick="if(confirm('是否关闭')){window.opener=null;window.close()}">
<body onunload="if(!confirm('是否关闭')){window.open('a.htm')}">
解决方案 »
- 重开一贴,怎么用回车使表格新增一行
- 数据库查询。。 谢谢。。
- javascript函数中如何访问一个名字随参数变化而变化的对象?
- 高分求助从.js文件中读取变量的值????
- javascript 可以使下拉框的onchange事件失效吗?
- 请问网站固定位置广告和浮动广告的javascript代码如何实现?百分请教!
- 【急问】rss2.0聚合,enclosure参数问题,大家帮忙看看
- 一个复选框的简单问题,解决马上给分!
- 请高手帮忙,超链接问题!!!
- 怎么样点一下button就对textarea中的东西进行全选
- 一个点击按钮发送信息的JS 麻烦各位帮我看看
- 请问"收藏"用Javascript怎么做成函数?
<script language=javascript>
function window.onbeforeunload()
{
if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey){
window.event.returnValue="确定要退出本页吗?";}
}
</script>
你的第二个方法怎么对象不支持此属性和方法的?有问题哦.
是什么意思呢?能解释一下吗?