JavaScriptA Web Scripting Language
Outline
General Remarks
Version History
JavaScript 1.2
JScript 3.0
Java vs. JavaScript
Java vs. JavaScript (cont’d)
Performance Issues
JavaScript Scripts
“Hello World” Example
“Hello World” Example (cont’d)
Form Example
Form Example (cont’d)
Events
Event Handlers I
Event Handlers II
Event Handlers III
Event Handler Examples
JavaScript URLs
The <SCRIPT> Tag
The <SCRIPT> Tag (cont’d)
JavaScript Syntax
Variables
Operators
Expressions
Statements
The if Statement
The for Statement
The while Statement
The with Statement
JavaScript Object Model
JavaScript Object Hierarchy
Object Referencing
Window and Frame Objects
Window Properties
Window Properties (cont’d)
Frame Properties
Frame Example I
Frame Example II
Frame Example III
Frameset Documents
Window and Frame Methods
History Object
Location Object
Document Object
Document Properties
Document Properties (cont’d)
Document Methods
Form Objects
Form Properties
Form Methods
Navigator Objects
MimeType Objects
Plugin Objects
Built-in Objects
Array Objects
Array Methods
Built-in Arrays
HTML-reflected Arrays
Boolean Objects
Date Objects
Date Methods
Function Objects
Function Arguments
Image Objects
Image Animation
Math Objects
Math Properties
Math Methods
Number Objects
Number Properties
Number Properties (cont’d)
Object Objects
String Objects
String Methods
Event Object
Event Object (cont’d)
RegExp Object
RegExp Object (cont’d)
User-defined Objects
User-defined Methods
User-defined Methods (cont’d)
The prototype Property
Another User-defined Object
Built-in Functions
Parsing Functions
Other Functions
Cookies
Cookies (cont’d)
JavaScript Security
Same Origin Policy
The domain Property
Data Tainting
Signed Scripts
Signed Scripts (cont’d)
LiveConnect
LiveConnect (cont’d)
LiveWire
Email: gcf@npac.syr.edu
Home Page: http://www.npac.syr.edu