|
Javascript is a scripting language (read: programming language)
that is designed to work in web browsers or on web servers. That
is, in addition to understanding HTML, some web browsers (depending
on their version) also understand Javascript. Based on this understanding,
Javascript allows web designers to control the way the Web browser
works.
One of the most common uses of Javascript is to perform specific
functions during certain events of a web interaction. An example
of an event would be a click of the mouse; when that event occurs,
Javascript commands can be executed to create new windows or
other actions. There are many useful applications of Javascript
which are event driven; that is, the Javascripts run when something
happens in the browser window. But there are many other uses
of Javascripts which are not event driven. The examples below
will demonstrate both event-driven and non-event-driven Javascripts.
Javascript is, increasingly, also shorthand for an emerging
standard called "ECMAScript." From the ECMA website:
Standard ECMA-262
ECMAScript Language Specification, 2nd edition (August 1998)
This ECMA Standard defines the ECMAScript scripting language,
a general purpose, cross-platform programming language.
This ECMA Standard is based on several originating technologies,
the most well-known being JavaScript (Netscape Communications)
and JScript (Microsoft Corporation).
What is ECMAScript? (from Microsoft)
The ECMAScript standard describes a Web scripting language that
can enrich and
enliven Web pages in a Web browser. ECMAScript is the only standard
scripting
language on the Web; it is based on the ECMA-262 specification,
which outlines an
object-oriented programming language for performing computations
and
manipulating objects within a host environment, such as the browser.
.
|