C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Confirm Navigation Setting in Each Pages in ASP.NET Website
WhatsApp
Rajeesh Menoth
5y
6.3
k
0
1
25
Blog
Introduction
This blog describes how to Confirm navigation settings on each page in the 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 :
Tech Blog Reference:
Click here
.
People also reading
Membership not found