Wait for print dialog to close

Discussion in 'Javascript' started by Marcel Stör, Apr 4, 2004.

  1. Marcel Stör

    Marcel Stör Guest

    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.
    Example:
    <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
    'Cancel').

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

    Regards,
    Marcel
     
    Marcel Stör, Apr 4, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ajay
    Replies:
    4
    Views:
    570
  2. keto
    Replies:
    0
    Views:
    1,045
  3. Iñaki Baz Castillo
    Replies:
    7
    Views:
    943
    Iñaki Baz Castillo
    Jan 12, 2010
  4. Walter Beierdonck

    Self.close() window without the dialog close?Yes/NO

    Walter Beierdonck, Apr 29, 2004, in forum: Javascript
    Replies:
    1
    Views:
    373
    Grant Wagner
    Apr 30, 2004
  5. Matt
    Replies:
    1
    Views:
    305
    Randy Webb
    Nov 20, 2004
Loading...

Share This Page