requestBrowserDomains
Client-side
 Server-side
 Shared
 This function opens a request window in order to accept the requested remote URLs.
       Note      
 You must use this function prior to calling loadBrowserURL because every domain, with exceptions in the whitelist here and there, is blocked by default.
OOP Syntax Help! I don't understand this!
- Method: Browser.requestDomains(...)
Syntax
bool requestBrowserDomains ( table pages, [ bool parseAsURL = false, function callback (wasAccepted, new_domains) = nil ] )Required Arguments
- pages: A table containing all domains.
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use.
- parseAsURL (default: false): true if the passed addresses should be converted from URLs, false otherwise.
-  callback (wasAccepted, new_domains) (default: nil):
A callback function that is called as soon as the result is available.
 Syntaxfunction(bool wasAccepted, table new_domains)
Returns
- bool: result
Returns true, if the string was successfully read, false otherwise.
Code Examples
 client   
 requestBrowserDomains({ "mtasa.com" }) -- request browser domainshowCursor(true) -- show cursoraddEventHandler("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   endend)See Also
Browser Functions
- canBrowserNavigateBack
- canBrowserNavigateForward
- createBrowser
- executeBrowserJavascript
- focusBrowser
- getBrowserProperty
- getBrowserSettings
- getBrowserSource
- getBrowserURL
- getBrowserTitle
- injectBrowserMouseDown
- injectBrowserMouseUp
- injectBrowserMouseMove
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserGPUEnabled
- isBrowserLoading
- isBrowserRenderingPaused
- navigateBrowserBack
- loadBrowserURL
- reloadBrowserPage
- navigateBrowserForward
- requestBrowserDomains
- resizeBrowser
- setBrowserAjaxHandler
- setBrowserRenderingPaused
- setBrowserVolume
- toggleBrowserDevTools
- setBrowserProperty
 
 