browser class : LoadHtml(string,bool) method
Description
Loads the HTML string into the browser.
Syntax
instance.LoadHtml(string html, bool sync)
Arguments
Class | Name | Description |
string | html | HTML string. |
bool | sync | Synchronous or asynchronous. |
Return value
None.
Sample code
1: | browser b; // Main-browser |
2: | string html = "<!DOCTYPE html><html>...</html>"; |
3: | b.LoadHtml(html, true); // Synchronous loading. |
Notes
Creates a temporary Html file from the argument and moves to that file url.
If you specify true for the second argument, the moving will be done synchronously. If false is specified, it will be done asynchronously.
Events related to page navigation occur.
Links for reference
None.