`

js弹出窗口居中

    博客分类:
  • js
阅读更多

方法:onclick、Javascript、window.open、

height=h,width=w,top='+(screen.availHeight-h)/2+',left='+(screen.availWidth-w)/2+',
分享到:
评论
3 楼 bossjzl17 2011-11-29  
window.open('aa.htm','newwindow','height=200,width=105,top='+(screen.availHeight-200)/2+',left='+(screen.availWidth-105)/2+',toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no');
2 楼 bossjzl17 2011-11-29  
不错。。可以
1 楼 w203654 2011-11-12  
表达的很模糊,试了,不行呀

相关推荐

Global site tag (gtag.js) - Google Analytics