मराठी

Objects in JavaScript

Advertisements

Objects in JavaScript

JavaScript is an object-based scripting language. Almost everything is an object in JavaScript. A JavaScript object is an entity having state (properties) and behavior (methods). An object can group data together with functions needed to manipulate it. 

DOM (Document Object Model) 

When HTML document is loaded into a web browser, it becomes a document object. It defines logical structure of document. The way HTML document content is accessed and modified is called Document Object Model. 

The innerHTML Property 

The innerHTML property is useful for getting html element and changing its content. The innerHTML property can be used to get or change any HTML element, including <html> and <body>. 

Window Object 

Window object is parent object of all other objects. It represents an open window in a browser. An object of window is created automatically by the browser. An object of window is created automatically by the browser. 

If you would like to contribute notes or other learning material, please submit them using the button below.
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×