js的window对象
1.可以直接作为对象调用函数,window本身也有一些元素:innerHeight和 innerWidth
2.open() 和 close() 函数
<button onclick="demo()">open</button>
<script>
function demo(){
window.open("window.html","windowname","height=200,width=200");
}
//document.write("window的宽度:"+ window.innerWidth+"<br>");
//document.write("window的长度:"+window.innerHeight)
</script>


浙公网安备 33010602011771号