SyntaxFix
Write A Post
Hire A Developer
Questions
It's a pain in the ass. I recommend skipping the nonsense and using jQuery, which lets you just do $(window).width().
$(window).width()