|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
if there is text(ie the value is "some text here")in a text box on a html form how do you clear it when the mouse is clicked inside it?
|
|
#2
|
||||
|
||||
|
this thread belongs to html/js forum, sample of what you want is
<form name=myform> <input name=a value=hello onClick="document.myform.a.value=''";> </form>
__________________
And you know I mean that. |
|
#3
|
|||
|
|||
|
i tried it but it gave me an error on the form inboth netscape and in ie
|
|
#4
|
||||
|
||||
|
dunno...works fine for me
|
|
#5
|
|||
|
|||
|
Try this instead
<form name=myform> <input name=a value=hello onFocus="document.myform.a.value=''";> </form> I have no idea why Al's code didn't work, it should have, but I also had trouble in NS4.75 and with Opera 5.12.
__________________
Humble Seeker The longest journey starts with the smallest step, and knowledge is the longest journey of all. |
|
#6
|
||||
|
||||
|
could be that last ; ....
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > clearing input text boxes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|