Clear Forms
The following is an example of what this code can do! Click on the box :D:
1 Copy the following code and place it between the <head> and </head> tags:
<script language="Javascript">
<!--
function doClear(theText) {
if (theText.value == theText.defaultValue) {
theText.value = ""
}
}
//-->
</script>
2 Now, on the input areas you want to turn clear, make it like this:
<input name="name" size=25 value="name" onFocus="doClear(this)">
The onFocus="doClear(this)" is what makes it go clear!









