onbeforeunload="event.returnValue='你选择了退出。'"
解决方案 »
- <object classid="clsid:F3D0D36F-23F8-4682-……"插件类型ID值是怎么申请的
- 请问下,关于新浪微博那种插入视频,音乐功能
- document.getElementById("id")失效?
- window.open后 原页面session丢失
- 网页flash中能浏览pdf,word,ppt技术!
- 请问jquery 的 WYMeditor怎么使用啊
- firefox下关闭window?
- 一个超连接用在新窗口打开和直接点击到一个target中有什么不同?
- 表丹中有几个文本框,要求按回车就按照一定的顺序移动焦点~~怎么办?拜托!!!!!
- 怎样得到当前窗口大小?
- A页面与b页面共同构成一个frame叫C,能否实现,C中的form提交(document.form1.submit();),只刷新B页面?
- 一个例子,是关于用PHP增加select内容,但有D问题,请高手指教。
showModalDialog("about:<body onbeforeunload=\"event.returnValue='你选择了退出,Are you sure?'\">","","")
</script>
function window.onbeforeunload(){
with(window.event)if(clientY<0&&clientX>document.body.clientWidth||altKey)returnValue='Are u sure?'
}
</script>