What is the difference between open() and window.open() in Firefox?

前端 未结 6 2063
抹茶落季
抹茶落季 2021-01-18 10:16

In answering my question Pumbaa80 found a difference between calling open() and window.open(), try the following examples in Firefox

6条回答
  •  心在旅途
    2021-01-18 11:10

    In a browser, the default context is window. That's why you can call open(), alert() and even escape() for example. Calling window.open() is exactly equivalent to open().

    How a new window opens by the open() function call is entirely dependent on your browser.

提交回复
热议问题