methods
- void handeEvent(event)
-
Calls the handler for the specified event.
- object toSource()
-
Returns a literal representing the source code of the object e.g
"function Object() { [native code] }" or "function Car(manufactuer,
model, productionyear) { this.make = manufactuer; this.model = model;
this.year = productionyear; }".
- string toString()
-
Returns a string representing the object i.e. "[object Object]".
- void unwatch(property)
-
Removes a previously set watchpoint.
- object valueOf()
-
Returns the primitive value of the object e.g. "function Object() { [native code] }".
- void watch(property, handlingFunction)
-
Calls the handlingFunction when the property is changed.
properties
- className
-
The value provided in the class attribute of the HTML tag.
- constructor
-
The constructor method is the base method used to create an instance of the object.
- form
-
The form in which the button object is contained.
- id
-
The value provided in the id attribute of the HTML tag.
- name
-
The value provided in the name attribute of the HTML tag.
- prototype
-
Exposes the prototype for the method or property of the object.
- type
-
A string representing the type of the control, i.e. "button".
- value
-
The text displayed to the user.
events
- onblur
-
- onclick
-
- ondblclick
-
- onfocus
-
- onkeydown
-
- onkeypress
-
- onkeyup
-
- onmousedown
-
- onmouseout
-
- onmouseover
-
- onmouseup
-
- onresize
-