- Documentation
- Client events
- onClientBrowserNavigate
Event
onClientBrowserNavigate
The browser is navigating to a new address (e.g. after a link click). isBlocked tells whether the address is blocked.
Handler
addEventHandler("onClientBrowserNavigate", root, function(targetURL, isBlocked, isMainFrame) ... end)Parameters
targetURLstring- The address.
isBlockedbool- Whether blocked.
isMainFramebool- Main frame.
Source
source is the browser.
Example
addEventHandler("onClientBrowserNavigate", root, function(url, blocked)
if blocked then outputChatBox("Adres zablokowany: " .. url) end
end)