# OnNewPrinter Event Fires when a new printer is available. Syntax
    SiteKiosk.Printer.OnNewPrinter = handler
Parameters
printer | PrinterInfo object that contains the new printer.
Remarks The object that caused the event can be referenced in the event function using "this". Examples The following example displays the name of the new printer.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.Printer.OnNewPrinter = OnNewPrinter;
    function OnNewPrinter(printer)
    {
       alert("New printer: " + printer.PrinterName);
    }
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top