"Randy Webb" <Hi************@aol.comwrote in message
news:79********************@telcove.net...
Paul J. Lucas said the following on 11/27/2006 10:43 PM:
>Randy Webb <Hi************@aol.comwrote:
>>Paul J. Lucas said the following on 11/27/2006 9:40 PM:
have a simple form that contains an INPUT element that has an
initial value.
<form name="Form">
<input name="Number" type="text" value="Hello">
</form>
When the form loads, I want all of the text in the field to be
automatically selected. How can I do this?
document.Form.Number.focus()
No, that gives focus to the INPUT element.
Correct.
>It does not select the text inside.
Correct again.
Combine the two and test it again. Do you need me to come code it, upload
it, and get paid for it as well? While I am there, maybe I can teach you
how not to indent with tabs.
There's no better feeling than being a bit helpful in a terse and cryptic
way, then really pouncing when (surprise, surprise) the recipient didn't
quite get where you were coming from.
Well done. You're just so super.
A.
PS. If your time is so precious, why bother 'helping' people at all? (Oh,
yes -- there's the gratification of the pouncing thing. Sorry, I forgot.)
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/