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


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

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

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.

EL   -  Oct 05, 2008

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

Imrac   -  Oct 05, 2008


napalm`   -  Oct 05, 2008

/me loads in his remotes

mIRC begins to act erratically and deletes all the pr0n


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.