Description
Loads a page from the specified HTML source code. This function will load and render the provided HTML as the top level document.
This function will trigger all navigation events.
Applies to
Syntax
controlname.NavigateToString (string html)
Argument |
Description |
---|---|
controlname |
The name of the WebBrowser control. |
html |
The source code of the HTML page to be loaded. |
Return value
Integer.
Returns 1 if the function succeeds and a negative value if an error occurs. If any argument's value is null, the method returns null.
Examples
This example navigates to the page which uses the html source code.
string ls_string integer li_FileNum li_FileNum = FileOpen("example.html", TextMode!) FileReadEx(li_FileNum, ls_string) FileClose (li_FileNum ) wb_1.navigatetostring( ls_string )
See also