I'm struggling to find a solution to get the browser's width, not the document width.
window.innerWidth
This is the famous method to get it but I want to get the value inside an iframe (which is smaller than browser's viewport) but with the measures from browser (not the iframe). Like, testing in codepen or jsfiddle, I only get the width from result area.
browser (width: 1260px)
> body
> iframe (width: 260px)
> iframe (width: 1000px)
here, I want to get the browser value