Posted By

Eystein on 09/16/10


Tagged

javascript jquery


Versions (?)

Insert 'Print' page link


 / Published in: JavaScript
 

  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  

You need to login to post a comment.