Clear input field on focus: - Javascript DOM Event

Javascript examples for DOM Event:onfocus

Description

Clear input field on focus:

Demo Code

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>

Related Tutorials