469,352 Members | 1,747 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

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 1598


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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.