methods
- 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.
oArea.unwatch("innerHTML");
- 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.
oArea.watch("innerHTML", function(property, oldvalue, newvalue) {
if (newvalue != "") {
newvalue = "";
return newvalue;
}
});
properties
- accessKey
-
The key used to provide one-stroke access to the Anchor object.
- 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.
- coords
-
The value provided in the coords attribute of the HTML tag. This is a comma-separated list of numbers that is
either left x-coordinate, top y-coordinate, right x-coordinate, and bottom y-coordinate (in the case of a "rect"),
center x-coordinate, center y-coordinate, and radius (in the case of a "circle"), or a series
of x-coordinate and y-coordinate pairs (in the case of a "poly").
- href
-
The value provided in the href attribute of the HTML tag.
- id
-
The value provided in the id attribute of the HTML tag.
- innerHTML
-
The value contained within the HTML tag for example "current page" in <a href="#">current page</a>.
- name
-
The value provided in the name attribute of the HTML tag.
- prototype
-
Exposes the prototype for the method or property of the object.
- shape
-
The value provided in the shape attribute of the HTML tag i.e. "default", "rect", "circle", or "poly".
- tabIndex
-
The value provided in the tabindex attribute of the HTML tag.
- target
-
The value provided in the target attribute of the HTML tag.
- title
-
The value provided in the title attribute of the HTML tag. This text will show up as a "tooltip" in most browsers.
events
- onblur
-
- onclick
-
- ondblclick
-
- onkeydown
-
- onkeypress
-
- onkeyup
-
- onfocus
-
- onmousedown
-
- onmouseout
-
- onmouseover
-
- onmouseup
-