Kill popup window without warning


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Kill popup window without warning

  1. #1
    Daniel Guest

    Kill popup window without warning


    Hi,

    When you use
    <BODY LANGUAGE=javascript onLoad="window.close()">
    a warning window (normally OS window) will popup saying:

    The Web page you are viewing is trying to close the window.
    Do you want to close this window?

    is there any way to close a popup window and not get this warning window.


    Thanks

    Daniel R. Jimenez


  2. #2
    Harish Kumar Guest

    Re: Kill popup window without warning


    This is one of the most frequently asked questions in ASP message forums.

    The answer in short is you cannot. Also closing window abruptly without permission
    is not etiquette. But recently I came across some way through which you
    can do this albeit only in IE 6.

    Harish

    "Daniel" <djimenez@scu.edu.au> wrote:
    >
    >Hi,
    >
    >When you use
    ><BODY LANGUAGE=javascript onLoad="window.close()">
    >a warning window (normally OS window) will popup saying:
    >
    >The Web page you are viewing is trying to close the window.
    >Do you want to close this window?
    >
    >is there any way to close a popup window and not get this warning window.
    >
    >
    >Thanks
    >
    >Daniel R. Jimenez
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center