
I tried to print web page.I am using the below specified code. It working fine. But Internet Explorer doesn't support code. I want do some other modification. Please help.
<script>
function printpage()
{
var printWindow = window.open('test', 'Print Window', 'height=600,width=1000');
printWindow.document.write('<html><head><title>Print Window</title>');
printWindow.document.write('</head><body >');
printWindow.document.write('</body></html>');
printWindow.document.close();
printWindow.print();}
}
</script>
<input type="button" value="Print this page" onclick="printpage()" />
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.