Print any Webpage with 01 line of Code with Javascript
Jul 24, 2023
It is that simple. Just add print_current_page() function to it.
If applied on Text:
<p onclick=”print_current_page()”> Print Me </p>
If applied on Button:
<button onclick=”print_current_page()”> Print Me </button>
If on Link:
<a onclick=”print_current_page()”> Print Me </a>
Result:
Keep Coding. ❤