1) Script Title:
Disable Text Selection script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/noselect.htm
3) Describe problem:
I am attempting to disable text selection in MSIE and Mozilla (firefox).
I have tried the script referenced above to no avail...![]()
I am interested in disallowing both Click Select (mousedown) to select text AND Select All from the top menu and/or right click menu.
I have located a script that will disallow both Click Select (mousedown) AND Select All in MSIE, and disallow Click Select (mousedown) in Firefox, but does allow Select All either from the top menu or right click menu (in Firefox).
Here is the script:
<script language="JavaScript1.2">
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
I would greatly appreciate if anyone can correct the script to also disallow the Select All feature in Firefox.
Bookmarks