Javascript clear and recall default form value
// Swap out default text in a form field on click, and recall if field is empty
<script type="text/javascript"> function clickclear(thisfield, defaulttext, color) { if (thisfield.value == defaulttext) { thisfield.value = ""; if (!color) { color = "000000"; } thisfield.style.color = "#" + color; } } function clickrecall(thisfield, defaulttext, color) { if (thisfield.value == "") { thisfield.value = defaulttext; if (!color) { color = "cccccc"; } thisfield.style.color = "#" + color; } } script>