I created a popup window for printing some textarea information and have 2 problems. The function I use is:
1) I'd like to not have the new window displayed (I can live with it if hiding it is not possible).
2) The window is not closing after the print dialog completes.
Can someone help me with this? TIA.
Code:
function startFax(theForm) {
newwindow=window.open("","printwin","height=450,width=600");
newwindow.document.write("<body onload='window.focus();window.print()'>"+theForm.faxdata.value+"</body>");
newwindow.document.close();
}
1) I'd like to not have the new window displayed (I can live with it if hiding it is not possible).
2) The window is not closing after the print dialog completes.
Can someone help me with this? TIA.