I need a java-script or jquery code so that when every only I close my browser or tab of the browser then my custom popup from will come out, I don't want browser's default massage . I want to hide the default massages of the browsers only my popup form will be displayed before closing. And it need to be supported in three major browsers IE9,Firefox,Crome. Again I am mentioning the default messages which comes from browsers which have two options 1.leave page 2.stay on page I want to hide them
Thanks in Advance,