how to print using javascript Posted on April 10, 2016 by Chandan Sharma in HTML, JavaScript<button onclick="window.print();"> Print </button> use this code window.print(); It will print full opened window.Share this:TwitterFacebook Published by Chandan Sharma View all posts by Chandan Sharma