window.onresize = function (){ if(window.outerHeigth==screen.heigth && window.outerWidth==screen.width){ alert("全屏"); }else{ alert("不是全屏"); }}
window.open();新打开个窗口,,是这个吗