DOM - Body

1 - About

The body node in the DOM tree represents the HTML body element.

3 - Management

3.1 - Access

You access the body node via the document node as property.

Example:


let body = document.body;
let bodyWidth = window.getComputedStyle(body).getPropertyValue("width");
console.log("The width of the body is "+bodyWidth);

4 - Documentation / Reference


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap