CH 1
CH 1
What is JavaScript?
JavaScript Group
Department of Information Technology Supporting and Maintenance
Reference Book
• Section 1 • Section 4
What is JavaScript? Document Object Model(DOM) and
JavaScript in HTML DOM Extensions
Variables, Scope, and Memory • Section 5
• Section 2 Events, Forms and Canvas
Language Basics • Section 6
Reference Types Client-side Storage
Function
• Section 3
Understanding Objects
Window Object
Outline
• A Short History
• JavaScript Implementations
• JavaScript Versions
What is JavaScript?
• Component
• ECMAScript,
• Document Object Model (DOM),
• Browser Object Model (BOM).
• Browser
• IE6, Firefox, Chrome, Opera, Safari, and Microsoft Edge
• Operating System
• Windows, Mac, or Linux
ECMAScript(European Computer
Manufacturer's Association)
• DOM is an application programming interface (API) for XML that was extended for use in HTML
• DOM is necessary to preserve the cross-platform nature of the Web
• With the object model, JavaScript gets all the power it needs to create dynamic HTML:
• can change all the HTML elements in the page
• can change all the HTML attributes in the page
• can change all the CSS styles in the page
• can remove existing HTML elements and attributes
• can add new HTML elements and attributes
• can react to all existing HTML events in the page
• can create new HTML events in the page
The Browser Object Model (BOM)
The Browser Object Model (BOM) is used to interact with the browser.
These BOM provides access to the various characteristics of a browser (Browser window itself,
Screen characteristics, Browser history etc…..
By using BOM, can modify, move the window or can change the text in status bar, read the current
URL, go back or forward of the current page.
JavaScript Versions
• ECMAScript
• Document Object Model (DOM)
• Browser Object Model (BOM)
University of Computer Studies
Thank you!