how to apply html content in window.print() function in javascript code example
Example: javascript window.print
<button onclick="window.print()">Print this page</button>
<button onclick="window.print()">Print this page</button>