Home Ajax XUL JavaScript CSS HTML 5 FAQ-Forum

JavaScript Interactive Tutorial

JavaScript is the foundation of dynamic HTML, Ajax, and Web applications. It is also used for interactions in XML-based graphical user interfaces as XUL and XAML. This JavaScript tutorial is thus required for today programmers.
Take note that for the examples to work scripts must be enabled and especially under Internet Explorer 7, "bloqued content" must be accessed to try the demos locally.

This tutorial is based on JavaScript 1.5 compatible with all recent browsers and the Standard ECMA-262 Edition 3.

  1. Syntax of the language.
  2. Variables and constants
    Variables are dynamic in JavaScript.
  3. Operators.
  4. Array.
    They are dynamic and have attributes and methods.
  5. Functions.
    Defining and calling functions.
  6. Control structures.
    Loops and conditional expressions.
  7. JavaScript and PHP
    Sharing variables between PHP and Web pages. Adding variables to that of a form.
  8. Form
    Principles and form objects in HTML 4 and HTML 5.
  9. The eval function
    This built-in function allows to add variables and functions dynamically.
  10. Regular expression
    Processing texts with matching rules.
  11. Objects
    In JavaScript, they are dynamic, the structure can changes during a processing.

HTML and DOM objects

  1. Window.
    Creating dynamically a window in JavaScript.
  2. Navigator. An object to identify the browser of the user.
  3. Node. Smallest element of the tree of a page.
  4. NodeList. Using the interface, example.
  5. Select. Displaying a list of items to select.
  6. Image Map. Links in images.

Examples and interactive demos

  1. Optical illusion. How to change an image when the mouse is pressed down on it.
  2. Methods of Number. Trying interactively valid values and the result of conversions.
  3. Demo of String methods.
  4. Demo of Array methods.
  5. Methods of Date. Trying interactively the Date object.
  6. Adding dynamically a video reader with Node.
  7. Regular expression tester.
  8. Operators tester.