Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable browser's back button

How to disable browser's BACK Button (across browsers)?

like image 415
priyanka.sarkar Avatar asked Jun 07 '09 04:06

priyanka.sarkar


People also ask

How do I disable the Back button in Chrome?

Select Settings from the list. Scroll down to the Privacy and Security section, and select the Site settings from the menu. Choose the Pop-ups and redirects option within Site settings. Toggle the button to turn OFF and block the pop-ups and redirection.

How do I disable back forward and refresh functionality in browser?

function disableBackButton() { window. history. forward(); } setTimeout("disableBackButton()", 0);


1 Answers

Do not disable expected browser behaviour.

Make your pages handle the possibility of users going back a page or two; don't try to cripple their software.

like image 140
Jonathan Fingland Avatar answered Oct 18 '22 12:10

Jonathan Fingland