Make window not resizable in Chrome

后端 未结 2 1511
慢半拍i
慢半拍i 2020-12-11 09:07

I have some JavaScript that I use to make a window not resizable, something along the lines of:

window.open(URL, id, \"resizable=no\");

Thi

相关标签:
2条回答
  • This was easy to do with the old javascript with popups and a "resizable = 0" parameter a while ago, but current browsers do not allow this because they killed user's freedom. This initiative started with firefox and chrome followed him, probably the solution for this case is creating an chrome extension and that only works for chrome, but it seems a madness.

    After some discussions, the consensus seems to be that window.open() should not be modified to parse "resizeable", at least at this time. The change would require modifications to Webkit, and the behavior would be inconsistent with Firefox and existing Webkit browsers.

    see more here

    We always allow a window to be resized, which is consistent with Firefox.

    see more here

    0 讨论(0)
  • 2020-12-11 09:35

    This is old school javascript. Modern browsers tend to not allow this because it is seen as a user unfriendly limitation.

    0 讨论(0)
提交回复
热议问题