console.log(window.screenLeft + ', ' + window.screenTop);//0,0 but depends on where the window is positioned on your screen /* innerWidth is where your html document is showing. The brower ususall has some kind of frame and that is included in the outer width. */ console.log(window.innerWidth + ', ' + window.outerWidth);//100, 1280 window.open('http://www.google.com', '_blank');/*Popup might be blocked so you will not get a new window but might get an indication that a poping up window has been blocked.*/
No comments:
Post a Comment