SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: onFocus Only Once?
Threaded View
-
Jun 5, 2008, 22:12 #1
- Join Date
- Oct 2004
- Location
- Newport Beach
- Posts
- 1,761
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
onFocus Only Once?
I have a textarea in a form that has a value given to it as an instruction to the user.
When you click into the textarea I have onfocus="this.value='';" to remove the information and allow the user to begin typing their message.
How can I have the onfocus run only once? If the person were to click away from the textarea and then click back they will erase whatever they have written.
Thanks
Ryan
Bookmarks