You can use window.screen for the screen. I do not think you will get a guide.
or document.getElementsByTagName('body')[0].clientWidth for the in browser width.