textfield data problem

Dear all,

This might be very silly, but I am stuck

I was making a textfield in html. and then putting in some value into the textfield to display as default. Works. fine.

However I would want the data in the textfield to disappear as soon as it gets focus(mouse click or "Tab" select) tried doing some javascript with an onClick() functionality, doesnt work.!

All help appreciated.

Thanks

[425 byte] By [schizophrenica] at [2007-10-3 0:44:41]
# 1
JavaScript has an onFocus event. When the textfield gets the focus this event will fire and can be used to call a function to clear the textfield.
tolmanka at 2007-7-14 17:39:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...