Advertisements

Conform navigation setting in each pages in Asp.net website


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 :

Confirm navigation

 

 

 


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: