Saturday, May 10, 2025

Breaking News
>> Securing and encrypt View State and Cookies values  >> Page has one or more controls that do not correspond with   >> “The Controls collection cannot be modified because the control contains code blocks”  >> How to fix "Validation(): Element 'xxxx' is not supported  >> How to create a new session in ASP.NET programmatically  >> MySQL Database Backup using mysqldump command    

Editors Picks

Thursday, January 19, 2012

Browser Window Close Confirm


<script type="text/javascript">

window.onbeforeunload = bunload;

function bunload(){
dontleave="Please Use Logout Button ?";
return dontleave;
}

script>

1 comment :

  1. The message is appear when refresh the page its would be appears only once.

    If we use Our Sign Out Method instead of alert than this code makes a problem

    ReplyDelete

Contact Us

Name

Email *

Message *