- Documentation
- Client events
- onClientBrowserPopup
Event
onClientBrowserPopup
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)