window.parent.postMessage('hello', '*');
window.addEventListener("message", receiveMessage, false);
function receiveMessage (event) {
console.log(event.data);
console.log(event.origin);
console.log(event.source);
console.log('received');
}
This will work as intended; Perhaps there is a problem in event binding("message") with jQuery Will update when get something on that.