toefuzzies
Technical User
I'd like to close a popup window based that window printing successfully, but I don't want the user to have the choice to close - I just want the window to close if the printing was successful. Any ideas?
...I'm currently using self.close(), but would rather wait to see if the printing was successful first.
<SCRIPT Language="Javascript">
if (window.print) {
document.write('<form><input type="button" name="print" value="print" onclick="javascript:window.print();self.close();"></form>');
}
</script>
...I'm currently using self.close(), but would rather wait to see if the printing was successful first.
<SCRIPT Language="Javascript">
if (window.print) {
document.write('<form><input type="button" name="print" value="print" onclick="javascript:window.print();self.close();"></form>');
}
</script>