IWebApplicationNavigationEvents::BeforeNavigate method

Fired before navigate occurs in the given host (window or frameset element).

Syntax


HRESULT BeforeNavigate(
  [in] IHTMLWindow2 *htmlWindow,
  [in] LPCWSTR      url,
  [in] DWORD        navigationFlags,
  [in] LPCWSTR      targetFrameName
);

Parameters

htmlWindow [in]

Type: IHTMLWindow2*

The window or frame in which the navigation is about occur.

url [in]

Type: LPCWSTR

The URL to navigate to.

navigationFlags [in]

Type: DWORD

Flags related to the current navigation.

targetFrameName [in]

Type: LPCWSTR

The name of the frame in which the navigation is about to occur. The value is null if no named frame is targeted.

Return value

Type: HRESULT

Ignored by the host. If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

IDL

Webapplication.idl

See also

IWebApplicationNavigationEvents

 

 

Community Additions

ADD
Show: