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

Event

onClientBrowserPopup

ClientBrowserIdentical to MTA:SA

A page tries to open a new window (a popup). New windows are not opened; you can load the address in the same browser instead.

Handler

addEventHandler("onClientBrowserPopup", root, function(targetURL, openerURL, isPopup) ... end)

Parameters

targetURLstring
The window address.
openerURLstring
The page address.
isPopupbool
Whether it is a popup.

Source

source is the browser.

Example

addEventHandler("onClientBrowserPopup", root, function(target)
    loadBrowserURL(source, target)
end)

See also