bloodspecter
05-26-2003, 11:44 AM
I need some pros help for a some line of code I've found in the forum, here's the code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function myPrintFunction(){
window.setTimeout("winPtr.close()",15000);
winPtr = window.open("", "myWin"), "width=800,height=600";
winPtr.location.href = "document.htm"
winPtr.focus();
winPtr.print();
}
// End -->
This script is made to open a window, open the print box and close the window after some time.
What I would like to know is if this script will work on most of the browser like netscape, mozilla, conqueror etc.. have no way of knowing here.
If the script don't work, can you tell me how I may be able to make it work on as much browser as possible? I already know it's working in microsoft explorer.
Thank you.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function myPrintFunction(){
window.setTimeout("winPtr.close()",15000);
winPtr = window.open("", "myWin"), "width=800,height=600";
winPtr.location.href = "document.htm"
winPtr.focus();
winPtr.print();
}
// End -->
This script is made to open a window, open the print box and close the window after some time.
What I would like to know is if this script will work on most of the browser like netscape, mozilla, conqueror etc.. have no way of knowing here.
If the script don't work, can you tell me how I may be able to make it work on as much browser as possible? I already know it's working in microsoft explorer.
Thank you.