Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] window.print() problems on Mac
- From: javascript@xxxxxxxxxx (javascript@xxxxxxxxxx)
- Subject: [Javascript] window.print() problems on Mac
- Date: Fri, 19 Oct 2001 15:32:14 -0500
I'm using a window.print() function in the onLoad of a form (I know,
generally it's rude and obnoxious to force printing, but this is an
intranet application and there are reasons for it, so no lecture please!)
It works just fine in NS and IE on the PC, and in IE on the Mac. But in
Netscape on the Mac, it seems to be stuck in some kind of loop - it brings
up the print dialog, you click OK, it prints, then brings up the print
dialog again. You can hit cancel at this point and have it go away, but I'm
curious as to why it's doing it in the first place. Does NS on the Mac
reload a document after it's printed, thereby forcing this particular
function into an endless loop?
Here's the code:
function runPrint(){
if (document.forms[0].ErrorText.value ==""){
window.print();
}
}
As I said, it's called in onLoad. Thanks for any insight you can provide.
~Esther
- Follow-Ups:
- [Javascript] window.print() problems on Mac
- From: Ben Curtis
- [Javascript] window.print() problems on Mac
- Prev by Date: [Javascript] Refreshing only one image
- Next by Date: [Javascript] window.print() problems on Mac
- Previous by thread: [Javascript] Q on 'new Image ()'
- Next by thread: [Javascript] window.print() problems on Mac
- Index(es):