WaitUntilCefBrowserLoaded

From GT-MP
Jump to: navigation, search
WaitUntilCefBrowserLoaded
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Waits until the browser has loaded the page.

In 0.1.7 and higher versions, this function returns true if the page is loaded with no issues and false otherwise.

Syntax

In Javascript
Client-Side Function

API.waitUntilCefBrowserLoaded(Browser browser);

Required Arguments

  • browser parameter input should be in Browser type.


NOTE: This function returns data in bool type.

Usage example

In Javascript
Client-Side Function

var browser = API.createCefBrowser(200, 200);
API.waitUntilCefBrowserInit(browser);
API.loadPageCefBrowser(browser, "page.html");
API.waitUntilCefBrowserLoaded(browser);
// Do something..

References