Re: Deselecting text in input text box
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: Deselecting text in input text box

From: RobG <rgqld@iinet.net.au>
Date: Tue Feb 28 2006 - 03:12:15 CET

kay wrote:
> there is one solution, but its not really javascript

To what?

> here's the code so u get the idea

Is your shift key broken?

> <div style="width:200px; border:1px solid black; text-align:left">
> <div style="width:200px; height:40px; position:relative; top:40px;
> background:">&nbsp;</div>
> <input type="text" value="value not to be selected" style="width:200px;
> height:40px">
> </div>

Use tab to navigate to the input, the text is selected, Ctrl+A will copy
it to the clipboard. Triple-click will select it all, as will clicking
in the text then dragging over it. Right-click and choose 'select all'.

How many ways can I defeat thee? :-x

-- 
Rob
Received on Mon May 1 03:40:30 2006