Javascript examples for DOM Event:onfocus
Clear input field on focus:
ResultView the demo in separate window
<!DOCTYPE html> <html> <body> <input type="text" onfocus="this.value=''" value="value value value"> </body>/*from ww w.j ava2 s . c o m*/ </html>