About

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

Management

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);

Documentation / Reference