As i doing research i know most of them are suggesting use
<body onbeforeunload="beforeUnload" onunload="unload">
But i trying to do some sample, is this can't work it.
Could you guys provide a simplest example to me ?
In fact, i gonna to delete the
Cookies value whenever they are trying to close web tab or shifting to non-of-my designed web page.