JAVASCRIPT   40

ImPrime

Guest on 14th May 2022 01:56:58 AM

  1. function CallPrint(strid)
  2. {
  3.  var prtContent = document.getElementById(strid);
  4.  var WinPrint = window.open('','','letf=0,top=0,width=640,height=480,toolbar=0,scrollbars=0,status=0');
  5.  WinPrint.document.write(prtContent.innerHTML);
  6.  WinPrint.document.close();
  7.  WinPrint.focus();
  8.  WinPrint.print();
  9.  WinPrint.close();
  10.  prtContent.innerHTML=strOldOne;
  11. }

Raw Paste


Login or Register to edit or fork this paste. It's free.