Problems printing a page with JavaScript -
i have function @ end of .asp page (yes, older asp).
<script language="javascript"> window.print(); printpage(); function printpage() { if (confirm("the page printed correctly?")){ window.location.replace('other.asp'); } else{ window.print(); printpage(); } } </script>
the problem apper when execute page , never appear print options window. shows confirm window every time press no button never shows print windows.
sorry english if mistake ...
thanks lot !!!! gustavo argentina.-
window.print()
executing asynchronously, it's calls printpage()
function. , on , on, if press 'no'.
Comments
Post a Comment