I had requirement in Asp .net appliction ie... if the user d'nt signoff or logoff then he trys to close the browser ie clicking on 'X' (top right of browser) then i need to show a conformation messasge like "Are you sure you want to close ?" ...
Iam using Masterpage for my application and i tryed the event : "window.onbeforeunload " in my master page its works fine shows an alert(conformation) message. but if i press back button on the browser then also its firing(but it shuold not be) is there any way to full fill my requirement ..plz
Thanks in advance