Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

navigate method

Loads the specified URL to the current window.


HRESULT retVal = object.navigate(url);


url [in]

Type: BSTR

BSTR that specifies the URL to display.

Return value


If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.


Using the navigate method in Windows Store apps

You can use the IHTMLWindow2::navigate method to load content inside your app's package to the main window, but if you use the IHTMLWindow2::navigate to open a URL not in the app's package, that URL will open in the browser instead. For more info, see How to link to external web pages.

See also

Topics for Windows Store apps
How to link to external web pages
Supporting navigation



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.