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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -