OnViewerOpened Event



 
Fires if a viewer program has been started after downloading the file.


Syntax

    SiteKiosk.Network.Downloads.Item(index).OnViewerOpened = handler
Remarks
    A viewer program will be started if the user chose "open" instead of "save" in the download dialog.

    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example shows an alert window if a viewer program is started after the first download.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.Network.Downloads.Item(1).OnViewerOpened = OnViewerOpened;
    function OnViewerOpened()
    {
       alert('Viewer program opened');
    }
    </SCRIPT>
    

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

Back to top