I am facing an error message "Stack over flow at line:0" in Internet Explorer when using the code below to print my Aspx web page. However, in Firefox, nothing seems to happen. Can anyone help me identify the issue?
<head>
<script language="javascript" type="text/javascript">
function print() {
window.print();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div class="toolbar" style="width:400px">
<ul>
<li>
<img alt="" src="../../../CssImages/printer_128.png" id="ImgPrint" width="20px" style="cursor:pointer" onclick="print()"/>
</li>
</ul>