Connecting Tech Pros Worldwide Forums | Help | Site Map

dragging cursor highlights text

Andrew Poulos
Guest
 
Posts: n/a
#1: Jul 23 '05
If I drag the cursor across a page, text and other elements get
selected. Is there anyway to prevent that from happening?

Andrew Poulos

Martin Honnen
Guest
 
Posts: n/a
#2: Jul 23 '05

re: dragging cursor highlights text




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

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

--

Martin Honnen
http://JavaScript.FAQTs.com/
Closed Thread