Introduction to JavaScript

This chapter provides a quick introduction of JavaScript. Topics include what is JavaScript; writing JavaScript code inside HTML documents; running JavaScript code in Web browser; browser built-in JavaScript object 'document'.

What Is JavaScript

First JavaScript - "Hello World!"

Walking through the First JavaScript

The document.write() Method


Table of Contents

 About This Book

Introduction to JavaScript

 ECMAScript Language Specification and JavaScript Dialects

 Data Types, Variables and Expressions

 Flow Control Statements

 Creating, Accessing, and Manipulating Arrays

 Defining and Calling Functions

 Web Browser Supporting JavaScript

 Server-Side and Client-Side Web Scripting

 Introduction to Objects

 Defining Your Own Object Types

 Inheritance of Properties and Methods through the Prototype Object Chain

 'jrunscript' - JavaScript Shell Command from JDK

 Using Functions as "Function" Objects

 Introduction to Built-in Object Types

 W3C's Document Object Model (DOM) Specifications

 AJAX (Asynchronous JavaScript And XML)


 Full Version in PDF/EPUB