Skip to content Skip to sidebar Skip to footer

Opera: Can't Get Load Event From Window.open()

var openedWindow = window.open('test.html', 'title'); openedWindow.addEventListener('load', function() { console.log('received load event'); }, false); I want to get the load

Solution 1:

this seems to be a known bug in Opera - I've pushed the internal bug report (CORE-46278) a little bit forward.

The only workaround I can think of is adding callbacks from the popup contents - type opener.popupLoaded(). This may however offer a performance advantage too - you can start interacting with the popup when its script environment is ready and the script you want to talk to is running, rather than waiting for the load event.


Post a Comment for "Opera: Can't Get Load Event From Window.open()"