I want as soon as user try to close the window i want to display an confirm message if user Click Ok then browser will be closed and if cancel it will not.
Can anybody help me out on this.
Thanks for Advance,
But when I try to compose an email in gmail, and try to close my firefox tab, even before the email is sent, GMail warns me "Do you want to close the browser tab? Your message has not been sent. Ok/cancel".
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss