Set HTML stylesheet from JavaScript

Viewed 15

I need to set from JavaScript the overflow attribute to scroll in the html,body stylesheet part in the screenshot below and not in the element stylesheet part.

Developer Tools Inpsector

However, the following code sets it in the element part even though it seems the code should have set it in the body part. How can I address the html,body part ?

function expand() 
{
    document.body.style.overflow = "scroll";
}
0 Answers
Related