[Home]   [TOC]

Study_Security_HTML5_Message  
HTML5 Message
Security, HTML, HTML5, Message
Updated Jan 24, 2015 by jht5...@gmail.com
window.addEventListener("message", receiveMessage, false);

function receiveMessage(event)
{
  if (event.origin !== "http://example.org:8080")
    return;

  // ...
}

https://developer.mozilla.org/zh-CN/docs/Web/API/Window.postMessage