hi i try to do printing a page but it must open the page first in a new tab. i have try to make the code. from my code i can open the page in a new tab but the print function do a print a blank page not the page that i direct open in a new tab.
how to fix that? please help me
this my code
<script>
function myFunction() {
w=window.open("../../192.168.1.22/print_page/SPL_Karyawan.html");
w.print();
w.close();
}
</script>