Welcome to the JSChannel example page. View source and you'll get an idea of how you can get richer messaging semantics outta HTML5 cross document messaging (a.k.a., window.postMessage) using this little javascript library.
First, here is basic function invocation: Next, here's error handling: Next, here's notification output: Finally, here's callback invocation output: