Text Unselectable In Ie
I require one HTML element (Label) on my page to be unselectable for IE ... currently I have tried Unselectable=on onselectreturn=false; none of which is helping me out. For Fire
Solution 1:
<label unselectable="on">
should work for IE in the HTML. If applying it from javascript you MUST use setAttribute: labelEl.setAttribute("unselectable","on")
. labelEl.unselectable = "on"
does not work (tested in IE9).
Note that the "unselectable" attribute only affects text directly inside the element, not within its children - you need to set unselectable on them also, if that's the effect you want.
Post a Comment for "Text Unselectable In Ie"