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: ASM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid>
Date: Tue Aug 16 2005 - 20:23:12 CEST

Randy Webb wrote:
> ASM said the following on 8/16/2005 10:32 AM:
>
>> a prompt I presume ?
>
> Why does it have to be a prompt? It could just as easily be a dHTML
> in-page popup and serve the same purpose.

love that *as easily*

>> selection = '';
>> in end of prompt function for instance ?
>
> If, and only if, selection refers to the range of selected text.

I hope so :-) (wouldn't selection be the right JS function with FF ?)

> The question had nothing to do with clipboard copy, it had to do with
> deselecting a selected word.

doesn't matter

-- 
Stephane Moriaux et son [moins] vieux Mac
Received on Mon Oct 24 02:14:11 2005