Hopefully this is the correct place to post this, so here ya go. I'm learning HTML and just had a few questions. I was using some tutorials from w3schools.com, and I came across Event Attributes. So I have this textbox, and I want it, when clicked, to clear the the text box of it's value, and change the text color to black (as in the actual text box, not the whole screen). Then when you click out of the text box, I want it to change the text color back to grey and have the value of the text box be 'Email' again. Here's the code:
<form>
<input type="text" value="Email" name="Email"
style="color:grey;text-align:left;background:white">
</form>
I realize this must use DHTML, but I am unable to find a good source to help me with this problem. Thanks!