HTML and CSS Reference
All elements related to the Document Object Model
Accesses information about specific functions
Keeps track of Web pages visited
Switches to a new Web page
Obtains information about the current Web browser
Supports special constants
Creates an Object wrapper
Describes patterns of characters
Gives platform-specific information about the user's screen
Represents a set of characters
Represents a browser window
describe an object's characteristics. As shown in Table 9-2, an object and its property are
written by separating the object from its property with a period. A specific value can be
assigned to a property, as shown in the following example:
VBScript are the two
main client-side script
languages used today,
there are over a dozen
other scripting languages
that work on specific
platforms or operating
systems. For example, PHP
and Perl. Perl stands for
Practical Extraction and
Report Language, and was
developed by Larry Wall in
1987 while at Unisys.
where the truck is the object, style is the property, and pickup is the value assigned to the
Table 9-2 Object and Property
where the object is stated first, then a period, then the descriptive property . A value can be
assigned to the property, or the property can return a value, as shown in the examples below.
In some cases, an object can be a property of a superior object, such as a text field that
belongs to a form.
Methods are actions that an object can perform. For example, methods associated
with the truck object might be style, color, and model. An object and one of its methods
would be written as:
Once a built-in object has
been converted to a new
object, the new object
inherits all the properties
and methods available to
the original object.
where truck is the object and load is a method of the truck object. Methods are followed
by parentheses, which may be empty, or may contain an argument.
An argument is a value given to a method. Some methods require arguments, and
others do not. For example, given a truck object and the load() method, the argument
“firewood” describes the material with which the truck may be loaded and would be
where the argument “firewood” describes the material loaded into the truck.