Is there an onbeforeunload function that i could use on all the browsers?
window.onbeforeunload = function () {/**/}
I have some script that i would like to execute when clicking on a link of my site.
Currently i am using the onclick event based script but this does not execute the full script before the next page loads.So in my browser network it is returning HTTP status cancelled. I would like a function to check if all the calls within this function has been loaded and then the new page should load. Is this possible?