Search This Blog

Thursday, July 11, 2013

Javascript and objects

Many developers suppose that the document.getElementById() or the windows.print() functions are parts of javascript language. That opinion is wrong. The  Javascript is only one language which collaborate very well with four types of objects. These obects are  the Javascript Objects ,the Browser objects, the DOM Objects and the end The user defined objects.


JS Objects

JS Number
JS String
JS Date
JS Array
JS Boolean
JS Math
JS RegExp

JS Browser (Window) Objects

JS Window
JS Screen
JS Location
JS History
JS Navigator
JS PopupAlert
JS Timing
JS Cookies

DOM Objects

DOM Document
DOM Elements
DOM Attributes
DOM Events

HTML DOM OBJECTS
With a programmable object model, JavaScript gets all the power it needs to create dynamic HTML:
It is also very important to know that events for Javascript there are only in EVENTS DOM OBJECT
  • JavaScript can change all the HTML elements in the page
  • JavaScript can change all the HTML attributes in the page
  • JavaScript can change all the CSS styles in the page
  • JavaScript can react to all the events in the page

BROWSER OBJECT MODEL 

The Browser Object Model (BOM) allows JavaScript to "talk to" the browser

JAVASCRIPT OBJECTS
Everything in Javascript is an Object.Number,String,function...
Each object has properties i methods. Nothing else

No comments:

Post a Comment

About Me

An seasoned developer, architect and with some Team Leading exposure, offering full project life cycle experiences within multi cultural, multi National environments and within differing business streams and all primarily on a .Net platform.