Share via

WebBrowser.NavigateToString Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Injects an HTML string into the web browser control for rendering.

Namespace:  Microsoft.Phone.Controls
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)


Public Sub NavigateToString ( _
    html As String _
public void NavigateToString(
    string html



The html parameter should be formatted as HTML. The text parameter can also contain JavaScript. If there are JavaScript functions contained in the HTML, you can use the InvokeScript method to call the functions from managed code.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


WebBrowser Class

Microsoft.Phone.Controls Namespace