OnViewerOpened Event

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


    SiteKiosk.Network.Downloads.Item(index).OnViewerOpened = handler
    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".
    The following example shows an alert window if a viewer program is started after the first download.

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

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

Back to top