print page using java script on click image

  1. <img src="images/icon_print.gif" style="cursor: pointer; vertical-align: middle"    
  2. border="0" alt="image" onclick="javascript:window.print();document.location.reload();" /><br />