iesniffer OnWBNavigateComplete2 event
Return to Introduction  Previous page  Next page
Applies to
IESniffer component.  

  TIEWebBrowserNavigateComplete2 = procedure(Sender: TObject; const URL: Stringconst Browser: IWebBrowser2;  
    const pDisp: IDispatch; var NewURL: OleVariant) of object;  
property OnWBNavigateComplete2: TIEWebBrowserNavigateComplete2;  

The OnWBNavigateComplete2 event occurs immediately after the Web browser successfully navigates to a new location.  
Write an OnWBNavigateComplete2 event handler to take specific action when the Web browser successfully navigates to a new resource. The event can occur before the document is fully downloaded, but when it occurs at least part of the document must be received and a viewer for the document created.  
Browser is the IWebBrowser2 interface that navigated to the new resource.  
pDisp is the Automation interface of the browser.  
URL is the URL, UNC file name, or PIDL that to which the Web browser navigated. This URL can be different from the URL to which the browser was told to navigate. For example, the browser may have been redirected by the target resource or by an OnWBBeforeNavigate2 event handler. In addition, the value of URL is the canonicalized and qualified URL: for example, if an application specified a URL of "" in a call to the Navigate or Navigate2 method of the IWebBrowser2 interface, the URL in the OnWBDocumentComplete event handler is "".  
Unlike the OnWBDownloadComplete event, OnWBNavigateComplete2 does not occur if the operation is not successful.  
iiinfo The OnURLChange event will occur if the URL in the browser address line has been changed.  

See also
OnWBBeforeNavigate2, OnWBDocumentComplete, OnWBDownloadBegin and OnWBDownloadComplete events.