Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

Form Button type

<html> <body> <input type="button"         value='type = "button"'        onClick="alert('&quot;'+this.type+'&quot;');"> <input type="reset"         value='type = "reset"'        onClick="alert('&quot;'+this.type+'&quot;');"> <input type="submit"         value='type = "submit"'        onClick="alert('&quot;'+this.type+'&quot;');"> </body> </html>