EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

navigate method

Loads the specified URL to the current window.

Syntax

var retval = window.navigate(url);

Parameters

url [in]

Type: String

String that specifies the URL to display.

Return value

Type: HRESULT

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

Standards information

There are no standards that apply here.

Remarks

Using the navigate method in Windows Store apps

You can use the navigate method to load content inside your app's package to the main window, but if you use the 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

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

 

 

Mostrar:
© 2014 Microsoft