弹出窗口问题 'width = wid, height = hei, top = 0, left = 0, toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,titlebar=1'写得有问题。变理和常量都用''引起来是什么意思? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.open("http://www.baidu.com", '', "width =" + wid + ", height = " + hei + ", top = 0, left = 0, toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,titlebar=1" ) <script>var wid = Math.ceil(screen.width);var hei = Math.ceil(screen.height - 30);//alert(wid);//alert(hei);window.open('', '', 'width ='+ wid+', height ='+ hei+', top = 0, left = 0, toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,titlebar=1' )</script>测试通过 <html><head><script language="javascript">function checked(){window.open("http://www.google.com","","height=1204,width=800")}</script></head><body onload="checked()"></body></html> jquery colorbox插件如何自适应高度 jquery-validation 错误图片和正确图片来回切换错误。 extjs 下拉树的重复打开问题 求救,火狐中text的blur事件问题 jquery下拉菜单 求一个页面效果 document.all.length是什么意思? 我对form不了解 关于动态显示网页的问题 在看javascript高级程序设计3时遇到个小问题,求帮助!不胜感激 怎么来测试正则表达式 document.open()
var wid = Math.ceil(screen.width);
var hei = Math.ceil(screen.height - 30);
//alert(wid);
//alert(hei);
window.open('', '', 'width ='+ wid+', height ='+ hei+', top = 0, left = 0, toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,titlebar=1' )
</script>测试通过
<head>
<script language="javascript">
function checked()
{
window.open("http://www.google.com","","height=1204,width=800")
}
</script>
</head>
<body onload="checked()">
</body>
</html>