Hello every body, I meet one problem recently using IE10. This problem doesn't exist using IE9 and earlier version.
I put a hyper link in a modal window, and when the hyper link is clicked, window.print() function would be called. But with IE10, after I click the print hyper link, the print window appears, then I select "Microsoft XPS Document Writer" as the printer, and click the print button on the print window, after I do this, the print window disappears, and nothing happens after that. In IE9, a save as window would appear right after I click the print button in print window.
Does any body get a clue?
a1.html
<script language="JavaScript">
function View()
{
url = "a.html";
window.showModalDialog(url, this, "dialogWidth: 650px; dialogHeight: 500px; scroll=1; help=0;dialogHide=yes");
return false;
}
</script>
<body>
<a title="view" href="" onClick="View(); return false;">View</a>
</body>
a.html
<html>
<head>
<title>Detailed Transactions Report By Cash Drawer</title>
</head>
<body leftmargin=0 topmargin=0>
<table align="center" width="100%">
<tr>
<td align="center" >
<span class="TextFieldStyleBold">DETAILED OPERATOR REPORT BY CASH DRAWER (<a href="##" onClick="window.print();">Print</a>)</span><br>
<span class="TextFieldStyle3">
Operator: MMA<br>
</span>
</td>
</tr>
</table>
</body>