While we can easily determine the width of the window using
$(window).width();
This only gives us the width of the window itself, not accounting for any overflowing content. When I refer to overflowing, I mean elements that extend beyond the visible viewport of the window and require scrolling to view in full.
One might recommend obtaining the width of the specific overflowing div. But what if I am unable to access this div's width (due to dynamic generation or other reasons)?
Is there a method to identify the maximum width of the entire webpage, including all overflowing elements?
Thank you!