I have a LinkButton called \"Exit Chat\" on the view.I embed javascript code into OnClientClink=javascript:confirm(\'Are you sure you want to end
LinkButton
javascript
OnClientClink=javascript:confirm(\'Are you sure you want to end
You can check the result of the confirm and then close the window if true.