Home | History | Annotate | Download | only in data
      1 <html>
      2   <head>
      3     <title>talk to me...</title>
      4     <script type="text/javascript" src="CFInstance.js"></script>
      5     <script type="text/javascript">
      6       CFInstance.listen("load", function() {
      7         document.body.innerHTML = "sending 'foo'";
      8         CFInstance.postMessage("foo");
      9         document.body.innerHTML = "...waiting...";
     10       });
     11       CFInstance.listen("message", function(evt) {
     12         document.body.innerHTML = "sending 'baz'";
     13         CFInstance.postMessage("baz");
     14       });
     15     </script>
     16   </head>
     17   <body>
     18     <h1>sends a message to the parent</h1>
     19   </body>
     20 </html>
     21