我们如何禁用在Firefox中新的弹出窗口的大小调整? [英] how can we disable resizing of new popup window in firefox?

查看:644
本文介绍了我们如何禁用在Firefox中新的弹出窗口的大小调整?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  window.open(lookup.htm,lookupWin,height = 400,宽度= 500,可调整大小=假); 

在IE中可以正常工作,但在FF中,弹出窗口仍然可以调整大小。如何在FF中禁用此调整大小?

解决方案

请从 mdc



窗口功能特性

> resizable


如果此功能设置为yes,则新的辅助窗口将会
$ b

 注意:从版本1.4开始,基于Mozilla的浏览器有一个窗口


的右端调整grippy的状态栏,这可以确保
用户可以调整浏览器窗口
,即使网页作者要求这个
辅助窗口是不可调整大小的。
在这种情况下,窗口标题栏中的最大化/恢复
图标将被禁用
,窗口边界
将不允许调整大小,但窗口
仍然会通过
grippy在状态栏中调整大小。

从Firefox 3开始,辅助窗口总是可以调整大小



错误177838 - 使所有弹出窗口可调整大小,忽略可调整大小= no


I tried opening a new window using

window.open("lookup.htm","lookupWin", "height=400,width=500,resizable=false");

It works fine in IE, but in FF the pop up is still resizable. How can I disable this resizing in FF as well?

解决方案

Read this one from mdc

Window functionality features

resizable

If this feature is set to yes, the new secondary window will be resizable.

Note: Starting with version 1.4, Mozilla-based browsers have a window

resizing grippy at the right end of the status bar, this ensures that users can resize the browser window even if the web author requested this secondary window to be non-resizable. In such case, the maximize/restore icon in the window's titlebar will be disabled and the window's borders won't allow resizing but the window will still be resizable via that grippy in the status bar.

Starting with Firefox 3, secondary windows are always resizable

Bug 177838 - Make all popup windows resizable, ignoring resizable=no

这篇关于我们如何禁用在Firefox中新的弹出窗口的大小调整?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆