This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to block "backspace" ?  RSS feed

 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In IE, Chrome, Firefox and other browsers, there are a button for use like "backspace", my question is about how to block this button ?

I use JSP, another form would redirect for another page, a error page.

How to I do this ?

Thanks in advance !
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why on earth would you want to do that? What are you actually trying to accomplish with this? Because whatever it is, blocking browser functions isn't the right way to do it.
 
J. Kevin Robbins
Bartender
Posts: 1801
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Short answer, you don't. Even if it were possible, it's a terrible solution. It's not your browser; leave it alone.

You probably need to do some reading up on the double posting problem and make sure you understand idempotent actions. I suspect that's what you are trying to fix with this "solution".
 
J. Kevin Robbins
Bartender
Posts: 1801
28
Chrome Eclipse IDE Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dang, beat me by 3 seconds...
 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not me, asked me to do this, i know it´s not the best solution.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Again, you need to find out what the actual need is so that we can recommend something that you can do.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!