String getPrinterName()
The getPrinterName
method lets you determine the
client device's printer name. getPrinterName
returns the
string used to specify the printer name.
printer = getPrinterName(); alert("Printer is " + printer);
Displays a dialog showing the name of the client device's default printer.