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
Sagar Bandkar
1.1k
347
48.8k
Disable Back button of browser after Login
Nov 8 2016 11:58 PM
I want to disable back button of any browser after Successful Login but not all pages
only next page after Login.I use Javascript but browser arrow seen
Code:-
<script>
function disableBackButton() {
window.history.forward()
}
disableBackButton();
window.onload = disableBackButton();
window.onpageshow = function (evt) { if (evt.persisted) disableBackButton() }
window.onunload = function () { void (0) }
</script>
<body onload="disableBackButton()">
but this Code forcefully back and that time back page seen
any Solution to disable back arrow of browser
Reply
Answers (
5
)
VS 2012 change project folder location
send sms from gridview