browser class : LoadHtml(string) method

Description

Loads the HTML string into the browser.

Syntax

instance.LoadHtml(string html)

Arguments

ClassNameDescription
stringhtmlHTML string.

Return value

None.

Sample code

1:

browser b; // Main-browser

2:

string html = "<!DOCTYPE html><html>...</html>";

3:

b.LoadHtml(html); // Asynchronous loading.

Notes

Creates a temporary Html file from the argument and moves to that file url.

The moving does asynchronous. That is, the method exits without waiting for the moving to complete.

Events related to page navigation occur.

Links for reference

None.

Copyright © Cooker All rights reserved.