Menu Title

WordPress – Use javascript to print specific contents in page

  This solution worked for me. Step 1: Specify the printable contents inside this div. <a href=’javascript:printContent(“ad_div”)’ id=’print_link’>Print</a> <div id=’ad_div’> specify your printable content here… </div>   Step 2: JavaScript function to print contents inside div in your webpage. function printContent(div_id) { var DocumentContainer = document.getElementById(div_id); var html = ‘<html><head>’+ Continue Reading