 there are times when i have to implement designs that have print links on them while i may think they are useless i still have to make them work as they are a part of an approved comp sure it is easy to have a link and then add an onclick event to launch the print window but is that the right thing to do clicking a javascript print link does nothing more than launch the browsers print window if a person has javascript disabled nothing will happen when they click a link like this a href= onclick= window print return false print a ideally we do not want to have things on a page that do not work without javascript enabled so the solution is to write the print link into the dom using javascript then attach a click event to the link luckily i use jquery on every project so it makes the process much easier the solution in this example we are going to prepend a list item with a link to an unordered list with the id of tools then we attach a click event to the link we have just added to the dom finally we return false to override the action of the link here is the script $ document ready function $ ul tools prepend li class= print a href= print click me to print a li $ ul tools li print a click function window print return false take a look at the demo page to see it in action the script is nothing complex it is just another example of using jquery to improve a users experience 