homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

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)

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)

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)

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?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved