title: javascript postMessage not working
body: <p>I don't know what to do. I tried several sample codes from different sources, I tried them in different browsers (from Chrome 9 to FF 4), and still nothing seems to be working with the "postMessage" function.
  JS console is giving me nothing, not a single error, still nothing is happening : the frames don't want to communicate. At all. And this isn't even cross-domain : both frames are from my domain.</p>
  
  <p>Here is a sample code from the last try :
  Parent frame :</p>
  
  <pre><code>&lt;iframe src="IFRAME_URL"&gt;&lt;/iframe&gt;
  &lt;script&gt;
      window.addEventListener( "message",
        function (e) {
              if(e.origin !== 'DOMAIN'){ return; } 
              alert(e.data);
        },
        false);
  &lt;/script&gt;
  </code></pre>
  
  <p>Child frame :</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
      &lt;script&gt;
          top.postMessage('hello', 'DOMAIN');
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>Help much appreciated, thanks a lot</p>