Source Code:
Result:
The width of this window is
unknown
px.
The width of this document is
unknown
px.
Return the width of the window and document elements
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself