Is it possible to disable text selection to make a PhoneGap app more similar to normal native app?
Something like this:
document.onselectstart = function() {return false;}
or:
* {
user-select: none;
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
}
Or many other things don't work.
Putting it on html
, not *
, works for me:
html {
-webkit-user-select: none;
}