js离开或刷新页面检测(且兼容FF,IE,Chrome)
复制代码 代码如下:<!DOCTYPE html><html><head><script> function closeIt() { return "Any string value here forces a dialog box to
" + "appear before closing the window."; } window.onbeforeunload = closeIt;</scri...