I want upon unload detect the destinated url (how, this the problem)
- $(window).unload(function(){
- alert("Goodbye1!");
- if (window.location.indexOf("localhost/freelancerHelp/divsMoveShowPCH/")==-1) {
- alert("Goodbye2!");
- }
- });
- // I want upon unload detect the destinated url (how, this the problem?) and appear a message only if not in my site the future url... how?