Print webpage

Results 1 to 2 of 2

Thread: Print webpage

  1. #1
    Join Date
    Dec 1969

    Default Print webpage

    Hi friends, <BR> Have a look of this code.<BR><BR>&#060;script language="javascript"&#062;<BR> function prn(){<BR> var con=window.confirm("Print(Y/N)");<BR>if(con) window.print();<BR>}<BR>&#060;/script&#062;<BR><BR><BR>This is OK, printing... but its asking again the printer dialog box. again i have to click onemore time. Eventhough i have only one printer installed in my system, its asking to select the printer. Cant we print directly(w/o displaying the dialog box)?<BR><BR>Thanx

  2. #2
    Join Date
    Dec 1969

    Default RE: Print webpage

    no, it always shows the print dialog, so that a malicious webpage can&#039;t just silently spew tons of data to a printer, severely pissing off the user.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts