Reset Object
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
 
CSGNetwork
Snippets
Calculators
Top Free Apps
Home
Back



Right click this window and select "view source" in order to copy the source for this script.

Reset Object

The reset button (<input type="reset">) within your form can be accessed and manipulated using JavaScript, via the corresponding Reset object. To access the button in JavaScript, use the syntax:

document.myform.resetname //where myform and resetname are the names of your form/element
document.myform.elements[i] //where i is the position of the reset button within form

Events

Events Description
onClick Code is executed when user clicks on the reset button.

Properties

Properties Description
disabled Boolean value that sets/ returns whether the reset button is disabled.
form References the form that contains the reset button.
name Reflects the name of the reset button (the name attribute).
type A property available on all form elements, "type" returns the type of the calling form element, in this case, "reset".
value A read only string that specifies the value of the reset button.


Bookmark and Share
Registered® Trademark™ and Copyright© 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved