getPrinterName (print applet)

Syntax

String getPrinterName()

Description

The getPrinterName method lets you determine the client device's printer name. getPrinterName returns the string used to specify the printer name.

Examples

printer = getPrinterName();
alert("Printer is " + printer);

Displays a dialog showing the name of the client device's default printer.

Related topics
  • Print applet
  • setPrinterName (print applet)