javascript: browser size (width and height)

Posted by dono on Stack Overflow See other posts from Stack Overflow or by dono
Published on 2010-03-18T23:18:58Z Indexed on 2010/03/18 23:21 UTC
Read the original article Hit count: 150

Filed under:
|
|

I'm trying to detect the browser's current size (width and height). I know it's super easy in jquery with $(document).width and $document.height, but I don't want to add the size of the jquery lib to the project, so I'd rather just use built in javascript. What would be the short and efficient way to do the same thing with javascript?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery