HTML and CSS Reference
In-Depth Information
Some of the events that JavaScript can handle are listed in Table 1.1.
Table 1.1 JavaScript Event Handlers
Event Handler
What Caused It
onAbort
Image loading was interrupted.
onBlur
The user moved away from a form element.
onChange
The user changed a value in a form element.
onClick
The user clicked a button-like form element.
onError
The program had an error when loading an image.
onFocus
The user activated a form element.
onLoad
The document finished loading.
onMouseOut
The mouse moved away from an object.
onMouseOver
The mouse moved over an object.
onSubmit
The user submitted a form.
onUnLoad
The user left the window or frame.
1.9 Standardizing JavaScript and the W3C
ECMAScript, which is more commonly known by the name JavaScriptâ„¢, is an essen-
tial component of every Web browser and the ECMAScript standard is one of the core
standards that enable the existence of interoperable Web applications on the World
Wide Web.
—Ema International
During the 1990s Microsoft Internet Explorer and Netscape were competing for indus-
try dominance in the browser market. They rapidly added new enhancements and pro-
prietary features to their browsers, creating incompatibilities that made it difficult to
view a Web site the same way in the two browsers. These times were popularly called
the Browser Wars, ending with Microsoft's Internet Explorer browser winning. For now
there seems to be peace among modern browsers, due to the fact that the World Wide
Web Consortium (W3C) set some standards. To be a respectable browser, compliance
with the standards is expected.
To guarantee that there is one standard version of JavaScript available to companies
producing Web pages, European Computer Manufacturers Association (ECMA)
worked with Netscape to provide an international standardization of JavaScript called
ECMAScript. ECMAScript is based on core JavaScript and behaves the same way in all
 
 
Search WWH ::




Custom Search