I’m curious how I would get the width of the document, it looks like I can get the width of the window using document.body.offsetWidth but everything else I try is like a few pixels different from document.body.offsetWidth and I need the document’s width which is larger, and doesn’t change when the window is resized.
I’m curious how I would get the width of the document, it looks like
Share
DEMO.