Javascript,calling child window function from opener doesn't work

前端 未结 4 1271
南旧
南旧 2020-12-03 11:30

I\'m developing a web application that opens a popup using windows.open(..). I need to call a function on the opened window using the handle returned by \"window.open\", but

4条回答
  •  清歌不尽
    2020-12-03 11:56

    You are calling the function immediately after opening the window; the page on the popup may not be loaded yet, so the function may not be defined at that point.

提交回复
热议问题