Code:
<script language="JavaScript">
function HideNPrint() {
PrintMe.style.visibility = "hidden";
print();
PrintMe.style.visibility = "visible";
}
</script>
<div style="display: inline;" id="PrintMe">
<table width="350" border="0" bordercolor="#FFFFFF">
<tr>
<td><div align="center">
<input type="button" name="Print Booking" value="Print Booking" onClick="HideNPrint();" onmouseover="style.cursor='hand'">
</div></td>
<td>
<div align="center">
<% if popup = "no" then %>
<input type="button" name="back" value=" Back " onmouseover="style.cursor='hand'" onClick="history.back();">
<% else %>
<input type="button" name="Close Window" value="Close Window" onmouseover="style.cursor='hand'" onClick="window.close();">
<% end if %>
</div>
</td>
</tr>
</table>
</div>
when i go to File>Print Preview and either print the file or cancel it seems to stop the Close window button from working. But, if the file is loaded for the 1st time or refreshed then the button works fine???
www.crmpicco.co.uk
www.crmpicco.co.uk.tt
www.milklemonadechocolate.uk.tt
www.griswolds.uk.tt
www.piccosmini.co.uk.tt
www.morton.uk.tt