Jquery code to print a webpage

/ Published in: jQuery
Save to your folder(s)

Copy this code and paste it in your HTML
  1. prntwin = window.open("");
  2. prntwin.opener = self;
  3. prntwin.document.body.innerHTML=msg;
  4. prntwin.print();
  5. prntwin.close();

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.