61
rated 0 times
[
65]
[
4]
/ answers: 1 / hits: 19298
/ 8 Years ago, tue, april 26, 2016, 12:00:00
Below is my code for event listener
window.addEventListener(beforeunload, function (e) {
if(sessionStorage.token != abide ) {
// call api
}
});
What if I want to remove this event listener, what should I do?
Is the code working like below??
window.removeEventListener(before unload);
More From » jquery