Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Select all text in field?
Old 06-17-2005, 10:20 AM Select all text in field?
Average Talker

Posts: 15
Trades: 0
I'm trying to find a way to have all the text in a field highlighted when the field is clicked. I'm thinking it will have something to do with the onFocus event handler, but I'm not sure.

Basically, I have a text field in a form. When the form is loaded it has default text inside of it. I want all the text to be highlighted when someone clicks inside the textbox. Kind of like what happens when you click on the address bar at the top of an IE browser.

I've searched Google, but I can't find anything.

Please help. :-)

-J2
jacannon2 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Select all text in field?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44373 seconds with 12 queries