Well, one of the ways I found is to just continue polling the location.href window (using setTimeout ), but this is hardly elegant.
Refresh . This does not work. I can console.log(newWin.location) just fine, but when I try to access href or hash , I get cross-domain security errors.
Bart van heukelom
source share