window.print and history.back

Giganews Newsgroups
Subject: window.print and history.back
Posted by:  Marco Dieckhoff (die…@gmx.de)
Date: 31 Jul 2003

Hi!

I'm trying to use a combination of windows.print() followed
directly by history.back().

The desired effect is to print the shown window and go back to that
one before.

I'm presenting a user a database result screen that's only
generated to be printed.
He shall get back to his previous sight after printing.

The problem:
history.back() is done before the printing dialog appears and
therefore the "previous" window is printed.

Can anyone tell me where my fault is? Or is it just a "normal"
behaviour of my browser?
(btw, I'm using IE 5.5)

--
Marco Dieckhoff
icq# 22243433
GPG Key 0x1A6C95BA --http://www.frankonia-brunonia.de/keys

Replies