Web Hosting, Design, & Coding forum

General discussion

Disable "Back" button

by Slasher / July 15, 2005 2:49 AM PDT

Or maybe not disable completly but insted make it so when they click the button it goes to a certain page. Anyone know how (for HTML)?

Discussion is locked
You are posting a reply to: Disable "Back" button
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Disable "Back" button
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
by R. Proffitt Forum moderator / July 15, 2005 4:39 AM PDT
In reply to: Disable "Back" button

With other browsers this will not always work. There are notes "how to" with IE, but you can't fix this on all the other browsers.


Collapse -
I would not appreciate that at all
by Andrea B. / July 15, 2005 10:43 PM PDT
In reply to: Disable "Back" button

if some webdesigner tried to mess with my computer's functions. And while disabling the back button is borderline, having the back button go to somewhere else and not just "back" is just wrong. (if that should be doable).

Collapse -
Well its not what you think
by Slasher / July 16, 2005 5:11 AM PDT

I am making a game type thing but do not have enough knowledge to use javascript yet. It's kinda like you click links to do stuff, but if you could just click on back you could cheat and click something else insted.

Collapse -
Why don't you
by PudgyOne / July 16, 2005 1:39 PM PDT

Why don't you just open the link in a new window, that way you cannot click on the back button

Collapse -
by Slasher / July 16, 2005 5:16 PM PDT
In reply to: Why don't you

Oh yeah, but how do you do it? I know that just "_blank" doesn't work, so how'd you make the pop-up box?

Collapse -
<a target="_new" href="wherever.html">new window</a>
by Andrea B. / July 16, 2005 9:32 PM PDT
In reply to: hmmmm

and I think target="_blank" works, too....

Collapse -
Forcing a link to open in a new window ...
by Kees Bakker / August 8, 2005 7:40 AM PDT

is discouraged by the w3c. And even possibly illegal, they say: http://lists.w3.org/Archives/Public/www-validator/2002Apr/0100.html

If you still want to do it (and there might be good reasons to do so), "_blank" is the thing to use. "_new" might work, but (possibly depending on the browser) just as well only the first time (because it isn't a standardized name, it's considered a real framename, so it will be reused a second time. If you want that, simply use target="mysecondwindow" or any name you like.


Collapse -
In fact, come to think of it, ...
by Kees Bakker / August 8, 2005 8:04 AM PDT
Popular Forums
Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?