JavaScript Fundamentals
Participants learn how to write JavaScript programs, script for the JavaScript object model, control program flow, validate forms, animate images, target frames, and create cookies. Participants will also understand and use the most popular applications of JavaScript.
- Cost: Price on application
- Duration: 1 day
- This course is not available as part of our public schedule but can be provided on a customised client specific basis.
Students must have CIW Foundations certification or equivalent experience, and be proficient in Hypertext Markup Language (HTML) authoring. No previous programming experience is required.
Origins of JavaScript
JavaScript Characteristics
Common Programming Concepts
Java and JavaScript
Server-Side vs. Client-Side Applications
Annotating Code with Comments
Communicating with the User
Using Data More Than Once: Variables
JavaScript Expressions
Operators
Inline Scripting, Simple User Events, and the onLoad and onUnload Event
Handlers
Keywords and Reserved Words
Functions
Defining a Function
Calling a Function
User and JavaScript Event Handlers
Methods as Functions
Controlling Decisoinal Program Flow
The if...else Statement
The while Statement
The do...while Statement
The for Statement
The break Statement
The continue Statement
The switch Statement
The JavaScript Object Model
Commonly Used Objects
The window Object
The document Statement
The with Object
The image Object
The history Object
The location Object
The navigator Object
JavaScript Language Objects
The String Object
Additional String Object Methods
Evaluating Strings
Regular Expressions
The Array Object
The Date Object
Setting and Extracting Time Information
The Math Object
Interactive Forms
Overview of Form Elements
Referring to form Element
The form Object
The button Object
The checkbox Object
The text and textarea Objects
The radio Object
The select Object
Multiple-Selection Lists
Form Validation
Security and Cookies
What Are Cookies?
How Are Cookies Sent?
Who Can Send Cookies?
Storing Cookies
Why Use Cookies?
Assigning a Cookie
Testing for Cookie Presence
Clearing a Cookie
Controlling Cookies in the Browser
JavaScript Security Issues
Using Frames and Windows
Targeting Frames in JavaScript
Changing Two or More Frames
Frames, Functions and Variables
Targeting Windows
Windows, Functions and Variables
Creating Custom Objects
Custom Object Demonstration
Creating the Object: The Contructor
Creating an Instance of a Custom Object
Creating Object Methods
Creating Functions for Your Objects
Complex Custom Objects