browser class : LoadHtml(string,bool) method

Description

Loads the HTML string into the browser.

Syntax

instance.LoadHtml(string html, bool sync)

Arguments

ClassNameDescription
stringhtmlHTML string.
boolsyncSynchronous 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.

Copyright © Cooker All rights reserved.