Intro to JavaScript - continued

Session 10 | Main Page | Previous Page | Next Page


JavaScript is a simplified, object-oriented scripting language, designed for repetitive tasks and responding to user events. It's main use has been on the client-side of the internet, though Netscape has released a version of their web server which incorporates a system called LiveWire, which includes server-side JavaScript programming.

The Object Model

Objects:

The combination of methods, properties and information form the object.

Built-in Objects

Javascript provides some built-in objects which provide information about the current page, its contents, the current session, the browser, and various methods associated with each of these. In addition, there are built-in objects for manipulating strings and dates, and performing math operations.

Javascript also allows for the creation of user-defined objects which will be explored later.

Object Hierarachy

        Window
          |
          +--Location
          |
          +--History
          |
          +--Document
                |
                +--Forms
                |
                +--Anchors
                |
                +--Links
                |
                +--Applets


Strengths and Weaknesses

Strengths Weaknesses
Platform independent Limited built-in method range
Quick developement No hidden code (allows copying)
Easy to learn Limited debugging (changing)
Small overhead  


Session 10 | Main Page | Previous Page | Next Page