dragging cursor highlights text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Poulos

    #1

    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
  • Martin Honnen

    #2
    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.preventD efault) {
    event.preventDe fault();
    }
    return false;">

    --

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

    Comment

    Working...