OnClientBrowserNavigate: Difference between revisions
Jump to navigation
Jump to search
m (fix typo) |
Zangomangu (talk | contribs) (Removed old issue) |
||
(9 intermediate revisions by 7 users not shown) | |||
Line 2: | Line 2: | ||
{{Client event}} | {{Client event}} | ||
{{New feature/item|3.0150|1.5|| | {{New feature/item|3.0150|1.5|| | ||
The event is executed when the browser loads a new page. | The event is executed when the browser loads a new page. Do not use [[loadBrowserURL]] in the attached function. | ||
}} | }} | ||
==Parameters== | ==Parameters== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
string targetURL, bool isBlocked | string targetURL, bool isBlocked, bool isMainFrame | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*'''targetURL:''' | * '''targetURL:''' the page the browser loaded. | ||
*'''isBlocked:''' | * '''isBlocked:''' if the [[browser]] was created with '''isLocal''' set to '''true''', and the browser tried to load a remote page, this would be set to '''true''' (and vice-versa). | ||
{{New items|3.0160|1.6| | |||
* '''isMainFrame:''' a [[boolean]] representing whether the entire page (main frame) was loaded or an ''<iframe>'' inside the page was loaded. | |||
|7888}} | |||
==Source== | ==Source== | ||
The [[Element/Browser|browser]] element | The [[Element/Browser|browser]] element. | ||
==Example== | ==Example== | ||
{{Example}} | {{Example}} | ||
[[pl:onClientBrowserNavigate]] | |||
==See Also== | ==See Also== | ||
{{CEF_events}} | {{CEF_events}} |
Latest revision as of 10:32, 30 January 2022
The event is executed when the browser loads a new page. Do not use loadBrowserURL in the attached function.
Parameters
string targetURL, bool isBlocked, bool isMainFrame
- targetURL: the page the browser loaded.
- isBlocked: if the browser was created with isLocal set to true, and the browser tried to load a remote page, this would be set to true (and vice-versa).
- isMainFrame: a boolean representing whether the entire page (main frame) was loaded or an <iframe> inside the page was loaded.
Source
The browser element.
Example
Script Example Missing Event OnClientBrowserNavigate needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
-- TODO
See Also
- onClientBrowserCreated
- onClientBrowserCursorChange
- onClientBrowserDocumentReady
- onClientBrowserInputFocusChanged
- onClientBrowserLoadingFailed
- onClientBrowserLoadingStart
- onClientBrowserNavigate
- onClientBrowserPopup
- onClientBrowserResourceBlocked
- onClientBrowserTooltip
- onClientBrowserWhitelistChange