javascript: Disable Text Select
<p>I'm using javascript to disable text selection on my webiste.</p>

<p>the code is:</p>

<pre><code>&lt;script type="text/JavaScript"&gt;

function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
&lt;/script&gt;
</code></pre>

<p>similar script can be found here:<a href="http://rainbow.arch.scriptmania.com/scripts/no_right_click.html" rel="nofollow">http://rainbow.arch.scriptmania.com/scripts/no_right_click.html</a></p>

<p><strong>On my localhost:</strong> ALL Browsers (Firefox, Chrome, IE and Safari) work great.</p>

<p><strong>On my Live site:</strong> all ok EXCEPT Firefox.</p>

<p>My questions are:</p>

<ol>
<li><p>Does anyone have a suggestion as to why Firefox behaves differently for the live site and local host. note: Javascript is enabled.</p></li>
<li><p>Maybe my script is too simplistic so i tried the following with EXACTLY SAME Results: <a href="http://freeware.ke-zo.com/CODES/DisableRC.txt" rel="nofollow">http://freeware.ke-zo.com/CODES/DisableRC.txt</a></p></li>
</ol>

<p>ANY HELP GREATLY appreciated.</p>

<p>Thank you and best regards,
arpeggio</p>
