how to disable close button in window
how to disable close button in window
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
yadagiri uppariPosted Aug 8, 2013, 3:04 AM
}
Riyaz AkhtarPosted Aug 7, 2013, 8:37 AM
Please follow below steps:
Step 1:
add jquery in ChatWindow.aspx page:
Step 2:
Add below script in ChatWindow.aspx page:
Step 3:
add below code in ur ChatWindow.aspx.cs file:
Please let us know if you are facing any issue.
yadagiri uppariPosted Aug 7, 2013, 7:16 AM
Riyaz AkhtarPosted Aug 7, 2013, 6:45 AM
http://www.codeproject.com/Tips/89661/Execute-server-side-code-on-close-of-a-browser
yadagiri uppariPosted Aug 7, 2013, 6:36 AM
Riyaz AkhtarPosted Aug 6, 2013, 8:57 AM
try below code
Sunny SharmaPosted Aug 6, 2013, 7:18 AM
use this Java Script:
window.onbeforeunload = function(){ return 'Do you want to leave ?';}
You cannot disable the close button but you can prompt a user if one really wants to leave.
Happy Coding :)