RequestBrowserDomains: Difference between revisions
Jump to navigation
Jump to search
m (fix oop 2) |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Client function}} | ||
{{New feature/item|3.0150|1.5|| | {{New feature/item|3.0150|1.5|| | ||
This function opens a request window in order to accept the requested remote URLs. | This function opens a request window in order to accept the requested remote URLs. |
Revision as of 20:18, 15 September 2015
This function opens a request window in order to accept the requested remote URLs.
Syntax
bool requestBrowserDomains ( table pages [, bool parseAsURL = false] )
OOP Syntax Help! I don't understand this!
- Method: Browser.requestDomains(...)
Required Arguments
- pages: A table containing all domains
Optional Arguments
- parseAsURL: true if the passed addresses should be converted from URLs, false otherwise.
Returns
Returns true, if the string was successfully read, false otherwise.
Example
requestBrowserDomains({ "mtasa.com" }) -- request browser domain showCursor(true) -- show cursor addEventHandler("onClientBrowserWhitelistChange", root, function(newDomains) if newDomains[1] == "mtasa.com" then local browser = createBrowser(1280, 720, false, false) -- create browser loadBrowserURL(browser, "http://mtasa.com/") -- load browser url end end )
See also
- canBrowserNavigateBack
- canBrowserNavigateForward
- createBrowser
- executeBrowserJavascript
- focusBrowser
- getBrowserProperty
- getBrowserSettings
- getBrowserSource
- getBrowserTitle
- getBrowserURL
- injectBrowserMouseDown
- injectBrowserMouseMove
- injectBrowserMouseUp
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserLoading
- isBrowserRenderingPaused
- loadBrowserURL
- navigateBrowserBack
- navigateBrowserForward
- reloadBrowserPage
- requestBrowserDomains
- resizeBrowser
- setBrowserAjaxHandler
- setBrowserProperty
- setBrowserRenderingPaused
- setBrowserVolume
- toggleBrowserDevTools