Introduction
This blog describe how to Conform navigation setting in each pages in Asp.net website.
Code :
//Put this script inside the Master page..
- function closeIt() {
- return "Any string value here forces a dialog box to \n" +
- "appear before closing the window.";
- }
- window.onbeforeunload = closeIt;
-
- <body onbeforeunload="closeIt()">
Output :