Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Wait for print dialog to close

Thread Tools

Wait for print dialog to close

Marcel Stör
Posts: n/a
Hi all,

If window.print() is issued Netscape (I guess Opera & Mozilla, too) waits
until the print dialog is closed before it returns the control flow to the
script - IE doesn't.
<sometag onClick="window.print();anyOtherCommand();">print</sometag>

In IE anyOtherCommand(); is executed while the print dialog is still
showing. The other browsers wait until the dialog is closed (either 'Ok' or

Does anyone know how to achieve the same behaviour with IE?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to close a TCP socket? (TCPSocket#close doesn't close it) Iñaki Baz Castillo Ruby 7 01-12-2010 01:32 PM
Problem - I want to print Current Output of Pdf file and should print once.I get print dialog box but it is not working keto Java 0 05-30-2007 11:27 AM
display print preview dialog, not print dialog Matt Javascript 1 11-20-2004 01:18 AM
gui - wait for dialog to close Ajay Python 4 09-17-2004 03:05 PM
Self.close() window without the dialog close?Yes/NO Walter Beierdonck Javascript 1 04-30-2004 02:48 PM