Re: JS Question

by "Srinivasan Ramakrishnan" <srinivar(at)md3.vsnl.net.in>

 Date:  Sun, 30 Jan 2000 23:13:24 +0530
 To:  "Rick Koch" <rrcominc(at)cris.com>,
<hwg-languages(at)hwg.org>
 References:  cris
  todo: View Thread, Original
window.print() works only in IE5

There's a more complicated method for IE4, and though I haven't used AOL 4.0
since it's based on IE, I think the same holds true.

Try MSDN.

If you don't find it, mail me and I'll send the .js files

-Srini
----- Original Message -----
From: Rick Koch <rrcominc(at)cris.com>
To: <hwg-languages(at)hwg.org>
Sent: Sunday, January 30, 2000 10:18 PM
Subject: JS Question


| Hello All!
|
| I'm needing to have the print dialog box open up on loading a page so
| all the visitor needs to do is press OK.  I thought the following has
| always worked for me cross platform (at least in versions 4 of Netscape,
| IE and AOL) but today, mysteriously, it only works in Netscape.
| -----------------------
| <SCRIPT>
| function printIt() {
|         window.print();
| }
| </SCRIPT>
|
| </head>
|
| <body onLoad="printIt()" link="#006600" vlink="#006633" alink="#009933"
| bgcolor="#FFFFFF">
| <div align="center">
| etc.
| -------------------------
| Netscape 4.6 works fine but in both IE 4.0 and AOL 4.0, after the new
| window open ok, I now get a script error window popping up saying...
| object doesn't support this property or method...
|
| ...so the print dialog fails to pop up anymore. I swear it always did
| before today.
|
| Any ideas on a reliable script for all of these browsers to "force" the
| print dialog box to open on load?
|
| Thanks so much,
|
| Rick K.
|

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA