471,887 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

dragging cursor highlights text

If I drag the cursor across a page, text and other elements get
selected. Is there anyway to prevent that from happening?

Andrew Poulos
Jul 23 '05 #1
1 1621


Andrew Poulos wrote:
If I drag the cursor across a page, text and other elements get
selected. Is there anyway to prevent that from happening?


MS IE:
<div onselectstart="return false;">
Mozilla, Netscape
<div onmousedown="if (event.preventDefault) {
event.preventDefault();
}
return false;">

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Sagaert Johan | last post: by
16 posts views Thread by Geoff Jones | last post: by
5 posts views Thread by Bart van Deenen | last post: by
8 posts views Thread by davefromalbury | last post: by
2 posts views Thread by Abubakar | last post: by
reply views Thread by andytsummers | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.