document.print()

wxdqz

New Member
hi all,
I tried to use the below function to print my webform written in asp.net when I click the "print" button. But a statment "error on page appears" in the status bar in IE. Does anyone know what is the problem?(Note: it goes fine when I use window.print();)
<script LANGUAGE="JavaScript">
function printWindow() {
document.print();
}
</script>
 
Back
Top