OnAfterPrint cannot work

Discussion in 'ASP General' started by ELF, Feb 2, 2004.

  1. ELF

    ELF Guest

    cannot using onAfterPrint in IE 6.0, the page can print but cannot close.
    Why??
    my code like as below

    <body onAfterPrint="window.close();">
    :
    <script language="javascript" type="text/javascript">
    <!--
    window.print();
    //-->
    </script>
    </body>
    ELF, Feb 2, 2004
    #1
    1. Advertising

  2. ELF

    Ray at Guest

    Try asking in a client-side group such as m.p.scripting.jscript. This group
    focuses on server-side programming.

    --

    Ray at home
    Microsoft ASP MVP


    "ELF" <> wrote in message
    news:...
    > cannot using onAfterPrint in IE 6.0, the page can print but cannot close.
    > Why??
    > my code like as below
    >
    > <body onAfterPrint="window.close();">
    > :
    > <script language="javascript" type="text/javascript">
    > <!--
    > window.print();
    > //-->
    > </script>
    > </body>
    >
    >
    Ray at, Feb 2, 2004
    #2
    1. Advertising

  3. ELF

    ELF Guest

    thx~~

    "Ray at <%=sLocation%> [MVP]" <myFirstNameATlane34dotKOMM> wrote in message
    news:...
    > Try asking in a client-side group such as m.p.scripting.jscript. This

    group
    > focuses on server-side programming.
    >
    > --
    >
    > Ray at home
    > Microsoft ASP MVP
    >
    >
    > "ELF" <> wrote in message
    > news:...
    > > cannot using onAfterPrint in IE 6.0, the page can print but cannot

    close.
    > > Why??
    > > my code like as below
    > >
    > > <body onAfterPrint="window.close();">
    > > :
    > > <script language="javascript" type="text/javascript">
    > > <!--
    > > window.print();
    > > //-->
    > > </script>
    > > </body>
    > >
    > >

    >
    >
    ELF, Feb 2, 2004
    #3
    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. J Gao
    Replies:
    0
    Views:
    1,199
    J Gao
    Jul 28, 2003
  2. news.microsoft.com
    Replies:
    4
    Views:
    4,974
    =?Utf-8?B?Q2hpbm1heQ==?=
    Jan 10, 2005
  3. Ram
    Replies:
    2
    Views:
    7,198
    Paul Glavich [MVP ASP.NET]
    Jun 30, 2005
  4. Carl Manson
    Replies:
    0
    Views:
    672
    Carl Manson
    Nov 10, 2004
  5. Marcia Hon
    Replies:
    0
    Views:
    440
    Marcia Hon
    Feb 8, 2004
Loading...

Share This Page