DWebBrowserEvents2::DocumentCompleteDWebBrowserEvents2::DocumentComplete*
*Contents  *Index  *Topic Contents
*Previous Topic: DWebBrowserEvents2::CommandStateChange
*Next Topic: DWebBrowserEvents2::DownloadBegin

DWebBrowserEvents2::DocumentComplete

void DocumentComplete(
    [in] IDispatch* pDisp,
    [in] Variant * URL
);

Notifies an application that a document has reached the READYSTATE_COMPLETE state.

pDisp
Address of the frame's IDispatch interface. In the case of a document that contains multiple frames, each frame will fire this event. The top-level frame will fire this event after each subframe is completed.
URL
String expression that evaluates to the URL, UNC file name, or PIDL that was navigated to. Note that this URL can be different from the URL that the browser was told to navigate to. One reason is that this URL is the canonicalized and qualified URL; for example, if an application specified a URL of "www.microsoft.com" in a call to the Navigate or Navigate2 method, the URL passed by DocumentComplete would be "http://www.microsoft.com/". Also, if the server has redirected the browser to a different URL, the redirected URL will be reflected here.

The URL parameter can be a PIDL in the case of a shell namespace entity for which there is no URL representation.

Not every frame will fire this event, but each frame that fires a DownloadBegin event will fire a corresponding DocumentComplete event.

Applies To

WebBrowser, Internet Explorer

See also READYSTATE


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.