HCI 201 Multimedia and the World Wide Web
Fall 1999 - Section 703 - JavaScript Basics
What the heck is JavaScript?
JavaScript is an object-oriented scripting language that is embedded in
an HTML document, allowing one to create interactive and dynamic Web
pages.
JavaScript can add interactivity and conditional behavior to your site.
It can respond to events that occur on the page, complete
calculations, and allow for user interaction in many other ways.
Another very useful possibility is the creation of scripts that identify
a user's browser and present a particular page based on the known capabilities of the browser.
Things to remember:
- JavaScript is case sensitive
- Not all browsers are JavaScript compliant (but most are) -- and you
should always comment out code so that older browsers don't display it.
Elements of JavaScript
- Objects -- elements that store some information
- Properties -- some accessible (most likely external, visible) pieces of information of an object
- Methods -- other accessible (most likely internal, invisible) pieces of information of an object
- Events -- actions by which users interact with parts of a Web page
- Operators -- perform operations on objects, includes: adding, subtracting, multiplying, dividing values, and assigning a value to an object or variable
- Statements -- combines objects and operators into instructions to perform actions
- Functions -- groups together a set of statements under a named subroutine
Week 8
Previous | Next
Course Home | Announcements | Class Roster | Schedule | Syllabus