Today, while working on an interactive kiosk, I needed to disable the text selection highlighting. After a few searches I discovered this was possible using CSS.
The code is:
*{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
The above will remove the highlighting from selected text, but will not prevent text selections.