IE10 Supports Objects, and Cross-Window Messaging

Internet Explorer 10 supports both cross-window messaging, as well as transporting objects over the wire. The following is a small demonstration of this. Once the message is passed, a stringified version of it will appear originating from the child window.

### Parent Window

``` html
<!DOCTYPE html>
<html>
  <body>
    <script>
      // Object to send
      var message = { txt: "Hello", val: 42 };
      // Reference to other window
      var child = window.open( "child.html", "popup", "width=320,height=240" );
      // After a couple of seconds
      setTimeout(function () {
        // Post the object
        child.postMessage( message, "*" );
      }, 2000);
    </script>
  </body>
</html>
```

### Child Window

``` html
<!DOCTYPE html>
<html>
  <body>
    <script>
      // Handler for our messages
      function handleMessage ( event ) {
        alert( "You sent: " + JSON.stringify(event.data) );
      }
      // Bind up a listener for the message event
      window.addEventListener( "message", handleMessage, false );
    </script>
  </body>
</html>
```