+ 1

it's possible to write a javascript who can run when the user try to close the navigature?

i want to make a script who will run when the user try to close the navigature like the confirm function but i want it to run just if the navigature will be closed

8th Apr 2017, 8:14 PM
Othman El Mzalni
Othman El Mzalni - avatar
2 Antworten
+ 7
document.onbeforeunload = function(){....}
9th Apr 2017, 1:26 AM
Emore Anzolin
Emore Anzolin - avatar
+ 1
thank you
9th Apr 2017, 6:47 PM
Othman El Mzalni
Othman El Mzalni - avatar