TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Saikiran Gst
NA
148
23.1k
CHECK TOOL LOGOUT OR NOT BEFORE CLOSE TOOL IN BROWSER
Sep 6 2014 8:29 AM
HI Every one
Ineed small help from u guies in my tool user with out logout and if he close tool in browser means then should raise error message please logout and if he loged out and closing browser tab then should not raise error message and close the browser using script please help guies
I am done using script but it was getting for evry page when they close even logout page also and asking leavepage or stay in page leavein page click means even user not loged out also closing but i need logout then only close browser
code:
code i used
<head runat="server">
<title></title>
<script type="text/javascript">
window.onbeforeunload = confirmExit;
function confirmExit() {
return "Before closeing Tool Logout and Close";
}
</script>
</head>
<body onbeforeunload ="confirmExit();">
Regards
SAIKIRAN GST
Reply
Answers (
1
)
display list of states of particular country
Integrating Google Plus in ASP .Net MVC application