Home News DOC Class DL Others Rice
Class  >  browser  >  LoadHtml(string,bool)
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:

window w;

2:

browser b = w.CurrentBrowser;

3:

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

4:

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 © Rice All rights reserved.