Disabling Text Selection in web page - Stop highlight
I have faced a text selection issue, when i enable click and drag in a web page. When i dragged an element the text in web page are selected.This issue is solved by adding a CSS property -moz-user-select: none
. This property works in FireFox only. The text selection issue in IE can be solved by adding a event called onselectstart
To disable text selection for a div
This is test. try selecting this line.....
it wont be highlighted while you select it..
Create Your Own Website / Host Your Website @ HIOXINDIA
<div onselectstart="return false;" style="-moz-user-select: none;">