onmousedown will stop the selection in Firefox. IE will still select text though so you must also use onselectstart to keep IE from selecting the text.
<td onmousedown="return false;" onselectstart="return false;">
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
<td onmousedown="return false;" onselectstart="return false;">
You need to create an account or log in to post comments to this site.
» Redirect after 5 seconds in html javascript
» Clear form with Javascript in xhtml html javascript firefox clear form msie valid
» Collapsable Navigation Menu in css html javascript
» Check / Uncheck all checkbox... in html javascript forms
» Disable a checkbox in html javascript
» Fix IE 5.5 and IE 6 PNG tran... in html javascript iefix
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails