Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
postMessage(String message, String targetOrigin) :
void
Causes a
MessageEvent to be dispatched at the target window when any pending script that must be executed completes
(e.g., remaining event handlers if window.postMessage is called from an event handler, previously-set pending
timeouts, etc.). The MessageEvent has the type message, a data property which is set
to the string value of the first argument provided to window.postMessage, an origin property corresponding
to the origin of the main document in the window calling window.postMessage at the time window.postMessage
was called, and a source property which is the window from which window.postMessage is called. (Other
standard properties of events are present with their expected values.) The window object on which postMessage
is called is a reference to another window; such a reference may be obtained, for example, using the contentWindow
property of an iframe element, the object returned by window.open, or by named or numeric index
on window.frames.
|
Show Details | ||||||||||||
|
Parameters
|
|||||||||||||