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

前端 未结 6 2059
抹茶落季
抹茶落季 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 10:50

    The are in fact the same. Try window.open === open or window["open"] === open. If that yields false to you then you must be in a closure and somecode has defined open.

    And of course this stands for all the objects that are member of the global (window) object.

提交回复
热议问题