JS: clear input on click
-Clear an input box content upon click-
1- Create the JS function on the header of your page (before the </head> tag)
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
2- Apply this function to the input you want (located between <body> and </body>)
<input type=text value='Enter your name here' onFocus="cleartext(this)" onBlur="cleartext(this)">
This function can be used in as many input fields you want repeating step 2 every time. The step one (declaring the function) needs to be done just once.