禁用表单窗口调整大小?
这是我的表单:
<form name="htmlform" method="post" action="php/html_form_send.php" onsubmit="window.open('','my_form_target', 'width=500,height=260', true); this.target='my_form_target';" >
现在他们在窗口上打开了,我可以禁用窗口调整大小,例如 resize=no
或 resize=none
或类似的东西?另外如果有的话我会把它放在哪里?
Here is my form:
<form name="htmlform" method="post" action="php/html_form_send.php" onsubmit="window.open('','my_form_target', 'width=500,height=260', true); this.target='my_form_target';" >
Now is their anyway on the window open I can disable the window from being re sized like resize=no
or resize=none
or something like that? Also if there is where would I place it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有语法允许您禁用调整大小,如果有的话,大多数浏览器(我希望)会忽略它
编辑:
其他答案指出 window.open() 方法确实存在语法。但是它似乎不适用于我测试过的任何浏览器
There is no syntax for allowing you to disable resizing, and if there were, most browsers (I hope) would ignore it
EDIT:
other answers have pointed out that the syntax does indeed exist for the window.open() method. However it does not appear to work in any browser I have tested