Gets the Uniform Resource Identifier (URI) of the document of origin.
HRESULT IDOMMessageEvent::get_origin(BSTR *p);
- Pointer to a variable of type BSTR that receives the URI of origin.
Returns S_OK if successful, or an error value otherwise.
In cross-document messaging, the origin attribute represents the originating URI of the document that sent the message (typically the URI includes the scheme, host name, and port of the document, but not its path or fragment identifier).