javascript常用方法

  • javascript打开新窗口
window.open('page.html','newwindow','height=100,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')  
  •  获取当前窗口的尺寸
var winHeight = document.documentElement.clientHeight;
var winWidth = document.documentElement.clientWidth;

 

posted @ 2014-06-11 11:28  尚荣伊翁  阅读(100)  评论(0编辑  收藏  举报