I can make it work in Chrome 15.0.874.121, although in your example you call target.postMessage before opening the window, although you missed some source code set by target .
You may also encounter the problem of calling postMessage before the content in the new window is loaded (or at least loaded enough for the event listener to be attached). Thus, an event can be triggered when it is not listening. You may need to add wait in this scenario to ensure that the window that has just opened is loaded.
In Internet Explorer 10, I get error message SCRIPT16388: Operation Aborted when I try to execute a script, even if I wait 10 seconds.
source share