<HTML>
<head>
<Title>Example For value</Title>
</head>
<BODY>
<form id="myForm">
<input type="button"
value='type = "button"'
onClick="alert('This element value is:'+this.value)">
<input type="reset"
value='input type = "reset"'
onClick="alert('This element valueis: '+this.value)">
<input type="submit"
value='input type = "submit"'
onClick="alert('This elementvalue is: '+this.value)">
<input type="checkbox"
value="checkbox"
onClick="alert('This elementvalue is: '+this.value)">
</form>
</BODY>
</HTML>
|