Export (0) Print
Expand All

IHTMLEventObj5::url Property

Gets or sets the fully qualified URL of the document that fired the event.

Syntax


HRESULT IHTMLEventObj5::get_url(BSTR *p);HRESULT IHTMLEventObj5::put_url(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives the URL string.
v
BSTR that specifies the URL string.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

To see if two documents are in the same domain, compare IHTMLEventObj5::url with the IHTMLLocation::hostname property.

See Also

IHTMLEventObj5::origin

Community Additions

ADD
Show:
© 2014 Microsoft