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.


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
Data Science
Linear Algebra Mathematics

Powered by ComboStrap