How we can control the browser window with out closing while clicking on close(X) button
of the window.