Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

origin property

Sets or retrieves the scheme, hostname, and port of the document that fired the onmessage event.

Internet Explorer 8

 

Syntax

JavaScript

p = object.origin

 

Property values

Type: String

a scheme followed by a hostname and a possibly a port.

Remarks

The origin includes the scheme, hostname, and port of the document, but not its path or fragment identifier. The scheme protocol must be either HTTP (unsecured) or Secure Hypertext Transfer Protocol (HTTPS).

See also

event
Reference
onmessage
url

 

 

Show:
© 2015 Microsoft