-moz- is the Problem here. -webkit- & -ms- are working:
document.body.style[-moz-user-select] = 'none';
https://jsfiddle.net/o2z04sre/1/
Maybe an alternative? Did try it with '-moz-none'
-moz- is the Problem here. -webkit- & -ms- are working:
document.body.style[-moz-user-select] = 'none';
https://jsfiddle.net/o2z04sre/1/
Maybe an alternative? Did try it with '-moz-none'
-moz-user-select
Non-standardThis feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Take a look at user-select Documentation for more informations, you could find an alternative in the following post CSS rule to disable text selection highlighting.
Hope this helps.