javascript - How to get HTML element similar to getting BODY with document.body? -
I know there is a way to do this, but how can I not remember?
How can I go about grabbing the HTML element (top-most element DOM) using plain javascript?
Use View Docs: document.documentElement .
Comments
Post a Comment