Or assign an event handler to the onunload property of the window object: window.onunload = (event) => { console.log('The page is unloaded'); };.
確定! 回上一頁