Disable back button of browser

Hi Folks,

Good Day,

How to disable back button of browser??

Please advise!

Thank You.

On Fri, Dec 21, 2012 at 2:32 PM, Maddy [email protected]
wrote:

Hi Folks,

Good Day,

How to disable back button of browser??

you cant.

[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/t_Pf7lwKLwAJ.
For more options, visit https://groups.google.com/groups/opt_out.

On Fri, Dec 21, 2012 at 12:32 AM, Maddy [email protected]
wrote:

How to disable back button of browser??

You can’t. It’s the users browser, not yours.

On Fri, Dec 21, 2012 at 1:10 AM, Ashokkumar Yuvarajan
[email protected] wrote:

Is there any another way??

My requirement is, once i clicks the browser back button my site redirect to
home page.

The saying “it’s more trouble than it’s worth” is particularly fitting
in this situation.

Thanks!

Is there any another way??

My requirement is, once i clicks the browser back button my site
redirect
to home page
.

Please advice!

On Fri, Dec 21, 2012 at 12:05 PM, Jordon B.
[email protected]wrote:

[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

“Attitude is a little thing that makes a big difference”

Thanks & Regards
Ashokkumar.Y
*ROR-Developer
*email : [email protected]
Shriramits

Ashok,

You can disable the browser back button with the help
of JavaScript snippets:

On Fri, Dec 21, 2012 at 3:10 PM, Ashokkumar Yuvarajan <
[email protected]> wrote:

Thanks!

Is there any another way??

Nope.

My requirement is, once i clicks the browser back button my site redirect
to home page
.

Please advice!

If there is a way, this is not the forum to ask :slight_smile:

Shriramits
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Rafi A [email protected] wrote:

Ashok,

You can disable the browser back button with the help
of JavaScript snippets:

I don’t think so. This is in the FAQ in comp.lang.javascript, and the
answer is that it can’t be done.


Tim S.
[email protected]

On Dec 20, 2012, at 11:32 PM, Maddy wrote:

How to disable back button of browser??

NO NO NO! 100 TIMES NO!

The back button is so fundamental to the experience of using a browser,
that if your design needs it to be disabled, then your design is broken.
Period. End of discussion.


Scott R.
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice

On Friday, 21 December 2012 02:10:51 UTC-5, Maddy wrote:

As others have indicated, it’s tricky-to-impossible and considered
seriously bad practice to do this sort of fiddling with the browser’s
navigation.

A better question is, why does this need to happen? There’s a good
chance
that the need for this sort of behavior reflects a design smell
someplace
else - for instance, trying to maintain session state in the URL or
similar.

–Matt J.