-4

Want to disable back and refresh button for a website in php using codeigniter.

whenever the person click on browser back button it should not be able to go on the page he visited before.

and does not reload that page once loaded.

hey its not for static page its for dynamic page . attending question on online test. please understand that

Yuvaraj
  • 27
  • 3
  • 10

3 Answers3

0

There is no way to do that. Except you may show an alert to user, when he tries to close window.

About the alert: Warn user before leaving web page with unsaved changes

Community
  • 1
  • 1
phoenix.mstu
  • 164
  • 9
0

That's imho not possible, and it's good so :) If you want, that your users don't use the back key, write this down as a warning message or something else :)

Florian
  • 2,796
  • 1
  • 15
  • 25
0

Check this out Iam not sure this is your actual issue but maybe it will help you out. Preventing Double submit on refresh/back

Harigovind R
  • 816
  • 8
  • 17