Alerting User in Closing Browser Windows in Javascript.

vishalneeraj-24503
Posted by vishalneeraj-24503 under JavaScript category on | Points: 40 | Views : 214
When we close browser window,then onbeforeunload Javascript event is called.Below function will call once we close browser window:-
window.onbeforeunload = function()
{
alert('Browser Window is getting Closed');
}

Comments or Responses

Login to post response