Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

disable image/text highlight

disable image/text highlight on a page



12:10 pm on Oct 23, 2001 (gmt 0)

i have been trying to disable image/text highlight on an entire web page or for images only...

something that wont allow the user to highlight text/images on a webpage at all or parts of it seems to be unheard of.

can any1 help with this please??


1:17 pm on Oct 23, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Hi Parjinder - Welcome to the board.

Assuming that by 'highlight' you're referring to dragging the mouse over screen objects to select them (like you'd select a chunk of text in a word processor).

I've never heard of a way of turning this off... but then I've never really heard of a reason why somebody would want to? Why do you need to do this - perhaps we can help there?


8:12 pm on Oct 23, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

I'm thinking about it and I can't come up with any good reason to want to turn of highlighting either.

Is this some attempt to make your site harder to copyright infringe? If so, give up now :-)


12:31 pm on Oct 24, 2001 (gmt 0)

no no not copyright.

i was working on this drag + drop game. essentially dragging <div>s to various drop targets. but when u drag em because it's just like ur highlighting text/images you cant event handle as the browser thinks youre trying to highlight...blah blah

its ok though i've solved it by making it full screen. thanx 4 the help!


3:15 pm on Oct 30, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Well, I can't believe it but I've found a way of doing what you were after:

<body onselectstart="return false">

Who'd a' thought it?


Featured Threads

Hot Threads This Week

Hot Threads This Month