Javascript (JS) Body Object Examples: HTML DOM – Javascript (JS) Body Object Examples
Javascript (JS) Body Object Examples: HTML DOM – Javascript (JS) Body Object Examples
Purpose: – Illustrates the JavaScript syntax for working with the Body Object. A Body object allows you to access properties related to the HTML Body of the document.
Body Object Examples
| Body Object Properties | |
| className | Allows you to access the class attribute of the body. |
| dir | Allows you to access the direction of text attribute of the body. |
| id | Allows you to access the id of the body. |
| lang | Allows you to access the language attribute of the body object |
| title | Allows you to access the title attribute of the body object |
