ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientBrowserNavigate

Event

onClientBrowserNavigate

ClientBrowserIdentical to MTA:SA

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)

See also