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

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -