This chapter provides an introduction of W3C's Document Object Model (DOM) Specifications. Topics include an overview of DOM specifications, Examples of DOM Level 0, 1, 2, and 3 functionalities, DOM levels supported by Web browsers, 'Node' and other DOM API interfaces, dump 'document' object with DOM API.
This chapter provides a quick introduction of JavaScript built-in objects. Topics include the global object and its properties provided by the host environment, the Math object and its properties, built-in object types: Function, Array, String, Boolean, Number, Date, RegExp, and Error.
This chapter provides introductions and tutorial examples on functions as objects. Topics include the built-in object type 'Function', creating functions using the 'Function()' constructor, function instance and inherited properties and methods, 'function' statement and operator.
This chapter provides introductions and tutorial examples on JavaScript shell command included in the JDK package. Topics include downloading and installing JDK 1.6, ECMAScript engine, running JavaScript code in command line, interactive or batch mode.
This chapter provides introductions and tutorial examples on object property and method inheritance. Topics include inheriting properties and methods from constructor's prototype, reviewing built-in default properties and methods, using the 'constructor' property, adding local and inherited properties, overriding inherited properties.
This chapter provides introductions and tutorial examples on how to define your own object types. Topics include defining constructor functions, adding properties and methods to objects or constructor prototypes, looping through properties and methods, using 'instanceof' and 'typeof' operators.
This chapter provides introductions and tutorial examples on the 'object' data type in JavaScript. Topics include creating 'Object' objects, adding and retrieving properties, adding and running methods, named and indexed properties, comparing arrays with objects.
This chapter provides introductions and tutorial examples on server-side and client-side Web scripting. Topics include Web scripting processing architecture overview, processing steps of server-side and client-side scripting, event handling scripts, script code returns new script code.
This chapter provides introductions and tutorial examples on how Web browsers provide support to JavaScript code embedded in HTML documents. Topics include executing JavaScript codes embedded in 'script' tags, including JavaScript code through external files, DOM API 'document' and 'window' objects, browser event triggers and listeners.
This chapter provides a quick introduction of using user defined functions in JavaScript. Topics include defining new functions, calling existing functions, passing primitive and object parameters, returning values, using local variables.
This chapter provides a quick introduction of creating and manipulating arrays. Topics include what is an array, creating an array, expanding and truncating arrays, calling array object methods.
This chapter provides a quick introduction of JavaScript flow control statements. Topics include 'if...then' statements, 'while' statements, 'for' statements, 'break' statements, etc..
This chapter provides a quick introduction of JavaScript fundamental concepts: data types, variables, and expressions. Topics include primitive data types, variable declaration, operators, expression evaluation.
This chapter provides introductions and tutorial examples on the ECMAScript language specification and JavaScript dialects. Topics include history of JavaScript, versions of dialects: LiveScript, JavaScript, JScript, JScript .NET, interface with host environments, automatic semicolon insertion.
This free book is a collection of tutorial examples and notes written by the author while he was learning JavaScript. Topics include data type, variable, expression, statement, loop, user function, object, property, method, array, object, constructor, prototype.