No Text Highlight

By Sapphy on Oct 05, 2008

This is a code that will disable highlighting on a web page. Copy and paste this wherever you want on your web page. It is JavaScript. :)

<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>

Comments

Sign in to comment.
Korvin   -  Mar 02, 2010

id use it for the live-action desktop im making in php and javascript =p highlighting doesnt happen on your desktop

 Respond  
Sapphy   -  Oct 06, 2008

Lol, you know that it is for web pages right? xD I submitted this under Javascript (which would be used on websites). ;D

 Respond  
Noutrious   -  Oct 06, 2008

EL, basically lames use sh*t's like these to not copy text.
As far as i see, there is no just of it - if i want, i still can copy everything.

 Respond  
EL   -  Oct 05, 2008

Hmm thats not nice ,to be able to highlight stuff is cool wtf why take that away.

 Respond  
Imrac   -  Oct 05, 2008

Cool

 Respond  
napalm`   -  Oct 05, 2008

/me loads in his remotes

mIRC begins to act erratically and deletes all the pr0n

THIS SCRIPLET DESTROYED MY LIFE

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.