Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Disable "Back" button

Jul 15, 2005 2:49AM 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

- Collapse -
Fortunately...
Jul 15, 2005 4:39AM PDT

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.

Bob

- Collapse -
I would not appreciate that at all
Jul 15, 2005 10:43PM PDT

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
Jul 16, 2005 5:11AM 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
Jul 16, 2005 1:39PM PDT

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

- Collapse -
hmmmm
Jul 16, 2005 5:16PM PDT

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>
Jul 16, 2005 9:32PM PDT

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

- Collapse -
Forcing a link to open in a new window ...
Aug 8, 2005 7:40AM 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.

Kees

- Collapse -
In fact, come to think of it, ...
Aug 8, 2005 8:04AM PDT