當頁面嘗試離開時會先將所有DOM 物件卸載(unload),所以由上述說明你可以 ... window.document.body.onbeforeunload = function() { if(confirm('您 ...
確定! 回上一頁