求大神帮忙看一下,为什么我在window.open();把"location=no"设置为NO了,还有就resizable=no这些都设置为NO了,但是打开新窗口时没有效果呀。"width=800","height=600", 这两个也是,打开新窗口后实际的高度宽度都不是设置的这两个值。求大神帮看一下,谢谢哈。下面是我的代码<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> <script> window.onload = function() { var but_1 = document.getElementsByTagName('input')[0]; but_1.onclick = function() { window.open("http://www.baidu.com", "_blank", "width=800","height=600", "toolbar=no", "menubar=no", "scrollbars=no", "resizable=no", "location=no","resizable=no", "status=no"); } } </script> </head> <body> <input type=" button " value="打开弹窗 " /> </body></html>
添加回答
举报
0/150
提交
取消