data property

Sets or retrieves the body of the onmessage request.

Internet Explorer 8

Syntax

JavaScript
p = object.data

Property values

Type: String

the body of the message, if specified by the sender; otherwise undefined.

Remarks

The data property contains the value passed to postMessage. Before trusting the data, check the url property of the message request to determine its source.

See also

event
url

 

 

Show:
© 2014 Microsoft