var winSize = {document.documentElement.clientWidth,height:document.documentElement.clientHeight};
var winWidth = 0; var winHeight = 0; window.onload = function(){ console.log("onload..."); winWidth = document.documentElement.clientWidth; winHeight = document.documentElement.clientHeight; }