Form setfocus() help!

Hey all,

just wondering what code you would use to have say:

name = “Name:”

shows in the input text field Name:

but when its clicked in it disappears and the user can type

BUT if there is content in there it stays with the content typed by user

Basically i just need the code for when you click in then i know it would be a few else and if statements but thats all good.

i think its set focus();

but if anyone can help it would be greatly appreciated thanks in advance!