Printing..window.print() does not work

Results 1 to 2 of 2

Thread: Printing..window.print() does not work

  1. #1
    Fion Guest

    Default Printing..window.print() does not work

    I have tried to put this code in but there is an error.<BR>&#060;%@ Language=VBScript %&#062;<BR>&#060;%Option Explicit%&#062;<BR>&#060;script language=javascript&#062;<BR>function doPrint(){<BR>window.print(); &#060;---highlights this line<BR>}<BR>&#060;/script&#062;<BR>&#060;INPUT type="button" value="Print" name=btnPrint onClick=doPrint()&#062;<BR>Error msg:<BR>A Runtime error has occurred.<BR>Do you wish to Debug?<BR>Line: 3<BR>Error: Object doesn&#039t support this method or property<BR><BR>note: I am using vbScript for my client-side validation<BR><BR>I need to print out this form in this frame.<BR>Pls suggest a way to solve my present problem or a better way to do it. Thanks.<BR> <BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Printing..window.print() does not work

    I don&#039t know if its a problem but you have your javascript tags inside the vbscript tags<BR><BR>I use a function like yours but I put the javascript inside the head tags of the html.

Posting Permissions

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