摘要: window.onbeforeunload = onbeforeunload_handler; function onbeforeunload_handler() { var warning = "确定要离开么?"; return warning; } 阅读全文