ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getBrowserSource

Function

getBrowserSource

ClientBrowserIdentical to MTA:SA

Fetches the HTML of the current page and passes it to a function.

Syntax

bool getBrowserSource(browser webBrowser, function callback)

Arguments

webBrowserbrowser
The browser.
callbackfunction
A function(html) callback.

Returns

true if the request was sent.

Example

getBrowserSource(browser, function(html)
    outputConsole("Strona ma " .. #html .. " znaków")
end)