Re: How to keep static text from being selected
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: How to keep static text from being selected

From: Robert <robert@noreply.x>
Date: Thu Aug 18 2005 - 15:53:48 CEST

jonathon wrote:
> I have a table of line-style entries, much like webmail. When the user
> double-clicks on a line, a box pops up to enter the data for that
> entry.
>
> The problem is, whatever word they clicked on in the table is still
> selected, as if to be copied or cut. It just looks ugly.

For Internet Explorer you can "return false" in the "onselectstart"
event handler.
For Firefox (and maybe some other browsers) you can "return false" in
the "onmousedown" event handler.

Robert.
Received on Mon Oct 24 02:14:14 2005