HTML DOM Style Object

Style object The Style object represents an individual style statement. Style Object Properties The “CSS” column indicates in which CSS version the property is defined (CSS1, CSS2, or CSS3). Property Description CSS alignContent Sets or returns the alignment between the lines inside a flexible container when the items do not use all available space 3 […]

HTML DOM Script Object

The Script object represents an HTML <script> element. Access a Script Object You can access a <script> element by using getElementById(): Example var x = document.getElementById(“myScript”); Try it Yourself » Tip: You can also access a <script> element by using the scripts collection. Create a Script Object You can create a <script> element by using the document.createElement() method: Example […]

HTML DOM Area Object

Area Object The Area object represents an HTML <area> element. Access an Area Object You can access an <area> element by using getElementById(): Example var x = document.getElementById(“myArea”); Try it Yourself » Create an Area Object You can create an <area> element by using the document.createElement() method: Example var x = document.createElement(“AREA”); Try it Yourself » Area […]