InNoCenT_Ch1ld
asked on
clear text field when received focus
hi, i need a script for a text field, when the text field received focus, anything in the text field will be remove and the user can enter his/her data without the need of deleting existing data?
can this be done? tks
can this be done? tks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tks ;-)
<html>
<head>
<title>Clear Form Demo</title>
<script language="javascript">
<!--
function ClearForm() {
document.testform.email.va
}
//-->
</script>
</head>
<body>
<form name="testform">
<input type="text" name="email" value="Something here." onfocus="ClearForm();">
</form>
</body>
</html>
R.K