Insert 'Print' page link


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



Copy this code and paste it in your HTML
  1. $('ul#tools').prepend('<li class="print"><a href="#">Print page</a></li>');
  2. $('ul#tools li.print a').click(function() {
  3. window.print();
  4. return false;
  5. });
  6.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.