Disabling text highlighting on a webpage

D

Don Dean

I was recently on a website where if you held down the left mouse and would
drag the mouse, it would not highlight the text so you could not perform a
copy and then later paste the text.
Also if you did a right click of the mouse and clicked on "Select All",
again, nothing on the page was highlighted.

Of course, got around this by viewing the source and could copy the text
that way, although had to delete out the html characters.

Was curious how do you do this disabling of the mouse buttons.
Is it a function of the HTML on the web page?
 
S

Stefan B Rusynko

Done with JavaScript, often in the body tag, disabling mouse events
- your view source would give you the code

As you indicated doesn't stop the educated
- and frustrates the other users

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I was recently on a website where if you held down the left mouse and would
| drag the mouse, it would not highlight the text so you could not perform a
| copy and then later paste the text.
| Also if you did a right click of the mouse and clicked on "Select All",
| again, nothing on the page was highlighted.
|
| Of course, got around this by viewing the source and could copy the text
| that way, although had to delete out the html characters.
|
| Was curious how do you do this disabling of the mouse buttons.
| Is it a function of the HTML on the web page?
| --
| Don
| ****
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top