D.S.R.Clark
11-08-2003, 11:44 AM
I got this fro the Javascript site. It worked ok on my computer, but does not work on the web. My original goal was to be able to "click" a button and print a hidden page; an order form. But I was told that that could not be done. This was suggested. And it worked ok on my computer, but not the web. Any thoughts????
I had it open to a small box in the corner ( non-obtrusive) then it should close upon clompletion of the print.
Thank you in advance!
David Clark
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="File-List" href="GOF_files/filelist.xml">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function printPage() {
if (window.print) {
agree = confirm('Elizabeth Stewart Clark & Company Order-by-mail. \n\n "Click" OK to print now.');
if (agree) window.print();
}
}
// End -->
</script>
<BODY OnLoad="printPage(),setTimeout(window.close, 500)" bgcolor="#FFFFFF">
</body>
</html>
I had it open to a small box in the corner ( non-obtrusive) then it should close upon clompletion of the print.
Thank you in advance!
David Clark
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="File-List" href="GOF_files/filelist.xml">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function printPage() {
if (window.print) {
agree = confirm('Elizabeth Stewart Clark & Company Order-by-mail. \n\n "Click" OK to print now.');
if (agree) window.print();
}
}
// End -->
</script>
<BODY OnLoad="printPage(),setTimeout(window.close, 500)" bgcolor="#FFFFFF">
</body>
</html>