RequestBrowserDomains: Difference between revisions
Jump to navigation
Jump to search
m (Jusonex moved page Cef/requestBrowserDomains to RequestBrowserDomains) |
|||
Line 16: | Line 16: | ||
==Example== | ==Example== | ||
requestBrowserDomains({ "mtasa.com" }) | |||
showCursor(true) | |||
addEventHandler("onClientBrowserRequestsChange", root, | |||
function() | |||
if mtaSite == "mtasa.com" then | |||
browser = createBrowser(1280, 720, false, false) | |||
loadBrowserURL(browser, "http://mtasa.com/") | |||
end | |||
end | |||
) | |||
==See also== | ==See also== | ||
{{CEF_functions}} | {{CEF_functions}} |
Revision as of 09:41, 13 April 2015
This function opens a request window in order to accept the requested remote URLs.
Syntax
bool requestBrowserDomains ( table pages )
OOP Syntax Help! I don't understand this!
- Method: browser.requestDomains(...)
- Counterpart: requestBrowserDomains
Required arguments
- pages: A table containing all domains (without http://)
Returns
Returns true, if the string was successfully read, false otherwise.
Example
requestBrowserDomains({ "mtasa.com" }) showCursor(true) addEventHandler("onClientBrowserRequestsChange", root, function() if mtaSite == "mtasa.com" then browser = createBrowser(1280, 720, false, false) loadBrowserURL(browser, "http://mtasa.com/") 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