How to block text selection without input textarea and select items i actually have the script that works in IE but not in other browsers, here it is:
var o
Updated my answer to be more clear:
browsers can disable selecting using css styles or using special element attribute. This way is better:
Opera and IE ignores such a style, but there is html element attribute unselectable, which denies selecting. Try the following page (I tested in IE8, FF3.6, Safari5, opera11, Chrome8):
test
For additional information about it visit this page. Now you can pick best option for you to use/mantain. One more time - this solution does not need javascript at all and should be imho more safe (if you can edit html\css pages and don't need dynamic. otherwise you can try to add css class\element attribute through javascript..)