In my web app the user can sometimes click the same button a number of times, skipping through messages and things, causing the to be selected.
S
You dont need script for this, here is the css:
-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;