JAVASCRIPT   44

configprint

Guest on 14th May 2022 02:06:56 AM

  1. function doprint() {
  2. //save existing user\´s info
  3.  
  4. var h = factory.printing.header;
  5. var f = factory.printing.footer;//hide the button
  6.  
  7. document.all(\"printbtn\").style.visibility = \´hidden\//set header and footer to blank
  8. nk
  9. factory.printing.header = \"\";
  10. factory.printing.footer = \"\//print page without prompt
  11. pt
  12. factory.doprint(false//restore user\´s info
  13. nfo
  14. factory.printing.header = h;
  15. factory.printing.footer =//show the print button
  16. ton
  17. document.all(\"printbtn\").style.visibility = \´visible

Raw Paste


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