<html>
<head>
<script language="JavaScript">
<!--
function resetForm(){
document.myForm.myText.value = document.myForm.myText.defaultValue;
}
-->
</script>
</head>
<body>
<b>Edit the text in the following text box:</b>
<P>
<form name="myForm">
<input type=TEXT value="hello world" name="myText">
<input type=BUTTON value="Click to Reset" name="myButton"
onClick="resetForm()">
</form>
</body>
</html>
|