FocusBrowser: Difference between revisions
Jump to navigation
Jump to search
ThePiotrek (talk | contribs) mNo edit summary |
m (Link to the Romanian translation of this page added.) |
||
(One intermediate revision by one other user not shown) | |||
Line 32: | Line 32: | ||
==See Also== | ==See Also== | ||
{{CEF_functions}} | {{CEF_functions}} | ||
[[hu:focusBrowser]] | |||
[[RO:focusBrowser]] |
Latest revision as of 11:34, 8 April 2020
This function will attempt to focus the browser or unfocus all browsers. The browser that is focused will retrieve keyboard input.
Syntax
bool focusBrowser ( browser webBrowser )
OOP Syntax Help! I don't understand this!
- Method: browser:focus(...)
Required Arguments
- webBrowser: The web browser to be focused - if this is nil, it will unfocus all browsers.
Returns
Returns true if the browser was focused or if nil was passed, false if it failed to focus or the browser does not exist.
Example
Click to collapse [-]
ClientThis example creates browser and focus it
local browser = createBrowser(860, 680, false) addEventHandler("onClientBrowserCreated", browser, function () focusBrowser(source) 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