How to close a IE page without any alart?

Discussion in 'ASP General' started by Microlong®, Jul 11, 2005.

  1. I use window object with close method to close a web page, this web page is
    designed by active server page and VBscript. the code is as follows:
    window.close()
    however, an alart messege comes from IE. It's details: The Web page you are
    viewing is trying to close the windows. Do you want to close this windows?
    I want to directly close the window without any alart messege. In VBA, we
    can add a declare Application.displayalart =false.
    How to do this in html or VBA?
    Thanks.

    --
    Developer
    QA Dashboard
    Microsoft China Development Centre
    Microlong®, Jul 11, 2005
    #1
    1. Advertising

  2. Microlong®

    Evertjan. Guest

    =?Utf-8?B?TWljcm9sb25nwq4=?= wrote on 11 jul 2005 in
    microsoft.public.inetserver.asp.general:

    > I use window object with close method to close a web page, this web
    > page is designed by active server page and VBscript. the code is as
    > follows: window.close()
    > however, an alart messege comes from IE. It's details: The Web page
    > you are viewing is trying to close the windows. Do you want to close
    > this windows? I want to directly close the window without any alart
    > messege. In VBA, we can add a declare Application.displayalart =false.
    > How to do this in html or VBA?
    >


    ASP is serverside scripting,
    so does not know about windows, windowobjects and/or clientside scripting.

    Please ask in another NG that does incorproate clisntside scripting.

    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)
    Evertjan., Jul 11, 2005
    #2
    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. Denon
    Replies:
    1
    Views:
    560
    Saravana [MVP]
    Nov 14, 2003
  2. Alexey Smirnov
    Replies:
    1
    Views:
    515
    Alexey Smirnov
    Feb 1, 2010
  3. Iñaki Baz Castillo
    Replies:
    7
    Views:
    820
    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:
    334
    Grant Wagner
    Apr 30, 2004
  5. Replies:
    2
    Views:
    446
Loading...

Share This Page