Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
data

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:
© 2015 Microsoft