- Documentation
- Client functions
- getBrowserSource
Function
getBrowserSource
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)