OnClientBrowserNavigate: Difference between revisions
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
TODOaddEventHandler ( "onClientBrowserNavigate" , root , | |||
</syntaxhighlight> | function ( targetURL , isMainFrame ) | ||
if isMainFrame then | |||
outputChatBox ( "Navigating you to a new page" .. targetURL ) | |||
end | |||
end | |||
)</syntaxhighlight> | |||
==See Also== | ==See Also== | ||
{{CEF_events}} | {{CEF_events}} |
Revision as of 16:30, 26 May 2015
The event is executed when the browser loads a new page.
Parameters
string targetURL, bool isMainFrame
- targetURL:
- isMainFrame:
Source
todo
Example
TODOaddEventHandler ( "onClientBrowserNavigate" , root , function ( targetURL , isMainFrame ) if isMainFrame then outputChatBox ( "Navigating you to a new page" .. targetURL ) end end )
See Also
- onClientBrowserCreated
- onClientBrowserCursorChange
- onClientBrowserDocumentReady
- onClientBrowserInputFocusChanged
- onClientBrowserLoadingFailed
- onClientBrowserLoadingStart
- onClientBrowserNavigate
- onClientBrowserPopup
- onClientBrowserResourceBlocked
- onClientBrowserTooltip
- onClientBrowserWhitelistChange