javascript - window.onbeforeunload functionality -


Before restarting the user's deletion function and then continuing to redirect, click on the OK button before restarting On

  $ (document) .ready ({window.onbeforeunload = confirmExit;}); Confirm functionExit () {var ele = document.getElementById ("local behavior"); If (ele.value == "1") return "changes have not been saved. Skip changes?" ; } Function Deletion () {}  

  $ (document) .ready ( {Window.onbeforeunload = confirmExit;}); Confirm the functionExit () {delete () // Delete the call function here, once this is done, the code below will be applied var ele = document.getElementById ("localchanges"); If (ele.value == "1") return "changes have not been saved. Skip changes?" ; } Delete Function () {}  

Comments