Javascript's `window.resizeTo` isn't working

前端 未结 1 1016
夕颜
夕颜 2020-11-27 19:22

I\'m trying to create a bookmarklet to do some very specific resizing to do browser size testing, and I can\'t seem to get the web browser to resize using window.resiz

相关标签:
1条回答
  • 2020-11-27 20:03

    According to this bug report, this is a new feature, not a bug. Specifically:

    Two rules:

    1. Can't resize a window/tab that hasn't been created by window.open.
    2. Can't resize a tab if the tab is in a window with more than one tab.

    If I understand this "fix" correctly, you can resize only your own popup windows, not the main window.

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