How to get browser width using JavaScript code?

It’s a pain in the ass. I recommend skipping the nonsense and using jQuery, which lets you just do $(window).width().

Leave a Comment