What does this "onfocus" value do?

What does this "onfocus" value do?

Post by Don » Sun, 21 Nov 2004 09:45:12


What does the onfocus value of "this.select()" do in the following <input...> tag?

<input type=text name="img" size=20 onfocus="this.select()" value="http://" tabindex=7>

Thanks,
Don


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.yqcomputer.com/ The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
 
 
 

What does this "onfocus" value do?

Post by Randy Web » Sun, 21 Nov 2004 10:08:41


Put it in a test page, test it and see.

It will select all the text in the input.


--
Randy
comp.lang.javascript FAQ - http://www.yqcomputer.com/

 
 
 

What does this "onfocus" value do?

Post by Don » Sun, 21 Nov 2004 10:56:10


Thanks much Randy.
Don


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.yqcomputer.com/ The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---