Is there an easy hook for detecting that a window opened by a script has finished loading? Basically, I want the equivalent of the onLoad() hook, but I can\'t s
onLoad()
This works if the location of the newly opened window is same-origin:
var w = window.open('child.html') w.addEventListener('load', w.doSomething, true);