0
Q
部队鼠标点击
A
回答
0
已在 “卸载” 事件看;)
的取出电话,你只需要,如果你打电话给
confirm('Are you sure ?');
或类似的评论 “onbeforeunload” 说想要使用页面中的对象
function goodbye(e) {
if(!e) e = window.event;
//e.cancelBubble is supported by IE - this will kill the bubbling process.
e.cancelBubble = true;
e.returnValue = 'You sure you want to leave?'; //This is displayed on the dialog
//e.stopPropagation works in Firefox.
if (e.stopPropagation) {
e.stopPropagation();
e.preventDefault();
}
}
window.onbeforeunload=goodbye;
1
您需要使用事件“onb eforeunload”附着有窗口:
相关问题
- 1. SDL鼠标点击
- 2. Powershell,鼠标点击
- 3. SeaDragon鼠标点击
- 4. 鼠标点击JTable
- 5. 鼠标点击java
- 6. 鼠标点击jquery
- 7. 鼠标点击原点
- 8. 绘图点鼠标点击
- 9. 让鼠标在鼠标点击鼠标后跟着鼠标
- 10. 鼠标点击标签
- 11. CodedUi:鼠标点击坐标
- 12. 区分机器人鼠标点击和人类鼠标点击
- 13. 鼠标点击面板跳过点击
- 14. 鼠标移动事件在下部div上,鼠标点击上部
- 15. 强制点击鼠标
- 16. 龙听写鼠标点击
- 17. 鼠标点击Silverlight 4
- 18. 点击鼠标悬停
- 19. Opengl鼠标点击矩形
- 20. 发送鼠标点击
- 21. 鼠标点击折叠行
- 22. 鼠标点击操作VC++
- 23. QwtPlot鼠标点击事件
- 24. 模拟鼠标点击QWebEngineView
- 25. GLUT鼠标点击检测
- 26. VBS发送鼠标点击?
- 27. 检测鼠标点击
- 28. jquery mousehover鼠标点击
- 29. 点击鼠标移动DIV?
- 30. 捕获鼠标点击php
我认为是更好地使用‘onbeforeunload’保持所有对象的文件活着 – sahid