<!--Two steps to installing this script-->
<!--1)Insert below in HEAD section of your page-->
<script language="Javascript">
<!--
//This credit must stay intact
//Script by Java-Scripts.net and http://wsabstract.com
function doClear(theText) {
if (theText.value == theText.defaultValue) {
theText.value = ""
}
}
//-->
</script>
<!--2)Add the following onFocus event into your form field, as follows-->
<form>
<input type="text" size=15 value="Enter name" onFocus="doClear(this)">
</form>
|