HTML DOM Style Object Properties

How to set properties to the style object in javascript?

Explanation

HTML DOM Style Object Properties:
The Style object of the DOM allows you to change the values of your CSS properties at runtime. The change makes an immediate effect on your webpages. It is possible to modify the properties set by both the inline and external style sheets.
Syntax :
document.getElementById("id").style.property="value";

The Style object properties are categorized as follows:


Ask Questions

Ask Question