javascript - how to disable F5 keyboard keys -


am doing online cab booking services,

once user reached completed journey,

we showing thank booking , show booking id, people hit f5

key, page refresh , new entry inserted ,

so want deactivate f% on cashthankyou page,

thanks bharanikumar

you won't have luck - control / detection of key presses heavily browser dependant, , overriding standard behaviour impossible.

rather approach, need detect , appropriately handle duplicate form submission:

how handle multiple submissions server-side


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -