简体   繁体   English

在Chrome上的Window.open

[英]Window.open on chrome

i have a form in a pop-up that will open when the index.php is opened and closes the index.php at the same time. 我在弹出窗口中有一个窗体,该窗体将在打开index.php时打开,并同时关闭index.php。 My problem is that when i open the pop-up sometimes it has a scrollbar and sometimes it doesn't but everytime i refresh inside the pop-up the scrollbars disappear because the size for the pop-up is the same size for my form div. 我的问题是,当我打开弹出窗口时,有时它有一个滚动条,有时没有,但是每次我在弹出窗口中刷新时,滚动条都会消失,因为弹出窗口的大小与我的窗体div的大小相同。

my code for opening the pop-up form 我用于打开弹出式表单的代码

var popup = window.open('forms/customersform.php', 'myWindowName', 'left=500,top=200,width=318,height=340','scrollbars=no;');

Don't put the scrollbars part inside quotes 不要将滚动条部分放在引号内

var popup = window.open('forms/customersform.php', 'myWindowName', 'left=500,top=200,width=318,height=340,scrollbars=no');

Someone else had a similar issue: How to do window.open with no scrollbars in Google Chrome 其他人也有类似的问题: Google Chrome浏览器中没有滚动条的window.open方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM