Huge HTML/XHTML/CSS/JAVASCRIPT NOOB

fubu05

Beta member
Messages
2
This is probably the simplest thing ever for you guys. But I am trying to get into web design.

So here is what I am trying to do. I have two textboxes and i want the text inside the textbox to disappear when it is clicked, but I want it to reappear when the other textbox is clicked

Original Page

a) [Username] b) [Password]

If a is clicked.

a) [ ] b) [Password]

if b is clicked.

a) [Username] b) [ ]

if anywhere else on the page is clicked.

a) [Username] b) [Password]


Soo. that being said, here is what I have so far.

<html>

<p>

<br />
<input type="textbox" onclick=value="" value="Username" />
<br />
<br />
<input type="textbox" onclick=value="" value="Password" /> </p>

</html>
 
Back
Top Bottom