how can we disable resizing of new popup window in firefox?

ぐ巨炮叔叔 提交于 2019-11-27 22:31:34

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

Yes it doesn't work anymore. Try

<script type="text/javascript">
window.onresize = function() 
{
    window.resizeTo(500,500);
}
window.onclick = function() 
{
    window.resizeTo(500,500);
}
</script>

I don't think you can. Firefox (and some other browsers) just ignore the "resizable" setting.

you con configure dom.disable_window_open_feature.resizable to value false, in order to make window.open re sizable work.

  1. Type about:config
  2. Accept the warning
  3. Search by typing resize and press enter ,
  4. Look for dom.disable_window_open_feature.resizable
  5. double click to change the value. false -> you can not resize the popup in firefox.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!