OnPopup Event



 
Fires when a popup is about to be displayed.


Syntax

    SiteKiosk.SiteKioskUI.PopupManager.OnPopup = handler
    
Parameters
    webBrowser SiteKioskWebBrowser object that contains the browser.
    flags Long value that contains the flags (NWMF Enumerated Type).
    URLContext String that specifies the URL of the page that opens the popup.
    URL String that specifies the URL of the popup page.
    allowed Boolean value that indicates whether the popup is allowed.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays whether a popup is allowed.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.SiteKioskUI.PopupManager.OnPopup = OnPopup;
    function OnPopup(webBrowser, flags, URLContext, URL, allowed)
    {
       alert(allowed);
    }
    </SCRIPT>

Applies to
    SiteKiosk v6.5 (and later versions).

Back to top