Java Script Notes
Overview In JavaScript, almost everything is an object or acts like an object.When a web page is loaded, the browser creates a HTML Document Object Model of the page. The HTML DOM is a standard for how to get, change, add, or delete HTML elements. The HTML DOM model is constructed as a tree of Objects: It defines: The HTML elements as objects The properties of all HTML elements The methods to access all HTML elements The events for all HTML elements With the object model, JavaScript gets all the power it needs to create a dynamic HTML: -JavaScript can change all the HTML elements/attributes/CSS styles in the page -JavaScript can remove existing HTML elements and attributes -JavaScript can add new HTML elements and attributes -JavaScript can react to all existing HTML events in the page -JavaScript can create new HTML events in the page The HTML DOM Tree of Objects Properties and Methods : An object has properties and methodes to work on these properties. methods are also considered as ...