/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('ul#tools').prepend('<li class="print"><a href="#">Print page</a></li>'); $('ul#tools li.print a').click(function() { window.print(); return false; });