Forum Moderators: open

Message Too Old, No Replies

Have a problem with highlighting text on webpage

         

theyuw

10:15 pm on Apr 11, 2004 (gmt 0)

10+ Year Member



I have been trying to make it so text on my webpage cannot be highlighted. I searched previous posts and found a code that supposidely doesnt allow text to be highlighted on a webpage. The code is as follows:

<body onselectstart="return false">

But when I put into my html editor it just displays it as plain text on my webpage. Is there any other part of the html code I am missing here so that I can get it to work? Help would be much appreciated.

theyuw

1:50 am on Apr 12, 2004 (gmt 0)

10+ Year Member



never mind. Figured it out...im such a newb. Prolly why no one replied :(

webboy1

9:41 am on Apr 13, 2004 (gmt 0)

10+ Year Member



I am curious as to why you would want to disable the possibility of selecting text of your site. If it is to stop people copying content, then you should be aware that there are other ways for people to do this such as taking a screenrgab.

Anyway, glad to hear you got your problem solved!

Oh, and welcome to Webmaster World!

Webboy