473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Blocking Back button on the browser

Hello,

How can block the back button on the browser
Thank you
Nov 18 '05 #1
4 2479
Robert,

There is no way to disable the back button -- about all we have are work
arounds. My favorite is putting a javscript "history.go(1)" in the body's
onload event.

Alex Papadimoulis

"Robert M" <ro******@hotmail.com> wrote in message
news:Ou**************@TK2MSFTNGP11.phx.gbl...
Hello,

How can block the back button on the browser
Thank you

Nov 18 '05 #2
Short answer: you can't. There is a discussion on that matter here:

http://www.4guysfromrolla.com/webtech/111500-1.shtml
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Shell/UI
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Robert M" <ro******@hotmail.com> wrote in message
news:Ou****************@TK2MSFTNGP11.phx.gbl...
Hello,

How can block the back button on the browser
Thank you

Nov 18 '05 #3
I agree, at first, I was of the opinion, that it's too controlling, and bad
application design if you have to block browser features.
Then I realized, users are stupid. They will do everything you never thought
they would

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:O4**************@tk2msftngp13.phx.gbl...
Short answer: you can't. There is a discussion on that matter here:

http://www.4guysfromrolla.com/webtech/111500-1.shtml
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Shell/UI
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Robert M" <ro******@hotmail.com> wrote in message
news:Ou****************@TK2MSFTNGP11.phx.gbl...
Hello,

How can block the back button on the browser
Thank you


Nov 18 '05 #4
careful where you put them though, I don't think there is anything more
irritating that doing a google search, following a result only to not be
allowed to get back to the google page cause of some client side block
script. Errr.. get's me mad just thinking about it...
"George Durzi" <gd****@hotmail.com> wrote in message
news:uw*************@TK2MSFTNGP12.phx.gbl...
I agree, at first, I was of the opinion, that it's too controlling, and bad application design if you have to block browser features.
Then I realized, users are stupid. They will do everything you never thought they would

"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:O4**************@tk2msftngp13.phx.gbl...
Short answer: you can't. There is a discussion on that matter here:

http://www.4guysfromrolla.com/webtech/111500-1.shtml
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Shell/UI
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Robert M" <ro******@hotmail.com> wrote in message
news:Ou****************@TK2MSFTNGP11.phx.gbl...
Hello,

How can block the back button on the browser
Thank you



Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: KK | last post by:
Hi, I am using history.go(-1) for implementing the back button functionality. Its working fine but with this exception. 1. The page which is having back button has some hyperlinks on it. ...
13
by: crjunk | last post by:
Should I expect some of my users to not be able to view a report that I am launching in a new web browser if they have any popup blocking tool bars or other software installed on their computer? ...
4
by: Hypo | last post by:
I added a 'Back' button to my page, and wrote 'OnClick' code something like this: Response.Write("<script>history.go(-" + iDepthIndex.ToString() + ");</script>"); But, it dosnt work! Effect...
8
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
12
by: Veeresh | last post by:
In my asp.net application I want to block mouse right click on my web pages. That means instead of popup menu I may just display some message or no message at all. Hot to do that? Thanks, Veer
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
5
by: Tom wilson | last post by:
I'm developing an application that is a benefits enrolment website. The benefits can be of any type in any order as stored in a SQL server. On each page is a Back and Next button. At a certain...
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
5
by: ns21 | last post by:
How can the browser back button be disabled If the form is submitting information to other pages or submitting to itself or using redirections. I tried the tweaks like history.forward(1) in each...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.