onClientBrowserLoadingStart
Client-side
Server-side
Shared
The event is triggered when a webbrowser starts loading a page.
Parameters
string URL, boolean isMainFrame
- URL: string containing the URL that will be loaded.
- isMainFrame: a boolean representing whether the entire page (main frame) was loaded or an
Source
element: The webbrowser element.
Code Examples
client
local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false)local theBrowser = guiGetBrowser(browser)showCursor(true)
addEventHandler("onClientBrowserLoadingStart", theBrowser, function(url, isMainFrame) if (isMainFrame) then outputChatBox("Loading "..url.." in the main frame...") else outputChatBox("Loading "..url.." in a iframe...") endend)
addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, "https://www.w3schools.com/html/html_iframe.asp")end)
See Also
Browser Events
Browser Functions
- canBrowserNavigateBack
- canBrowserNavigateForward
- executeBrowserJavascript
- createBrowser
- focusBrowser
- getBrowserSettings
- getBrowserProperty
- getBrowserSource
- getBrowserURL
- getBrowserTitle
- injectBrowserMouseDown
- injectBrowserMouseMove
- injectBrowserMouseUp
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserGPUEnabled
- isBrowserLoading
- isBrowserRenderingPaused
- loadBrowserURL
- navigateBrowserBack
- navigateBrowserForward
- reloadBrowserPage
- requestBrowserDomains
- resizeBrowser
- setBrowserAjaxHandler
- setBrowserProperty
- setBrowserRenderingPaused
- setBrowserVolume
- toggleBrowserDevTools