The JavaScript project, the JavaScript self-generator, should receive an A+. It contains the following aspects of JavaScript:

  1. It uses HTML objects, such as the "window" object, so that it can open a new window to process the dialog boxes.
  2. It also uses the built-in object "parent", so that it can tell the browser to make the changes to the parent document and, through that, can access the other frame to open it, write JavaScript in it, and execute it.
  3. It integrates with a form to provide automatic, dynamic updates.
  4. Some of the JavaScript runs in the header of the HTML files, while some runs in the body, so that it executes in a specific order.
  5. It runs over several functions, so that it can accept input, process that input, take in the parameters, and then evaluate it in the newly created JavaScript.

There are several other aspects of JavaScript displayed, but these are five of the biggest. It's based on an example I found around written by Shelley Powers in 1997.

The source code for the project is available here:


Return to the main site