We have a Chrome extension and we'd like to print the contents of the popup.html.
Does anyone know how I can print this with javascript?
THANK YOU!!!
We have a Chrome extension and we'd like to print the contents of the popup.html.
Does anyone know how I can print this with javascript?
THANK YOU!!!
 
    
    To print a page in JS you need the print() method of the window object:
function printPage(){
      window.print()
   }
but if you want to print a single element See This
