Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] window.print() problems on Mac


  • From: javascript@xxxxxxxxxx (Ben Curtis)
  • Subject: [Javascript] window.print() problems on Mac
  • Date: Fri, 19 Oct 2001 15:07:35 -0700

> Does NS on the Mac
> reload a document after it's printed, thereby forcing this particular
> function into an endless loop?

Exactly. Sort of. In order to print to paper what you see on the screen, I
believe (from my own tests) that Mac NN will re-render the page in new
dimensions -- including re-running javascript in case portions of the page
come from document.write commands. So the page first renders and triggers an
onload, and then the page renders again for printing -- triggering the
onload.

-- 
+Ben Curtis

    Descartes walks into a bar. "The usual?" he's asked.
    "I think not!" and he promptly vanishes.