www.webdeveloper.com
Results 1 to 2 of 2

Thread: window generated causes Confirm message on close

  1. #1
    Join Date
    Mar 2003
    Location
    Brisbane Australia
    Posts
    4

    Question window generated causes Confirm message on close

    My CGI script generates a new window after receiving
    input from a form . Basically a thankyou message,
    for requesting a quote . The page stays open for 3 seconds
    then self closes . This window is one of 3 that are open and on top(_Blank), but
    I just noticed that IE 5.0 creates a popup confirm message
    "The window you are viewing is trying to close down Y/N"
    The later browsers IE5.5 --> and NS do not have this problem.
    Popup windows generated from page scripts dont display the message, is this a security feature for server generated
    commands and how is it possible to tame the early browsers?

    the generated page contains the script
    <BODY onload="setTimeout (window.close, 3000)">

    Thanks for any help.

  2. #2
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    This is a security feature and is still present in modern browsers. The only time it won't prompt the user is if you are trying to close awindow that was also opened via scripting. There is no way around this.
    for(split(//,'))*))91:+9.*4:1A1+9,1))2*:..)))2*:31.-1)4131)1))2*:3)"'))
    {for(ord){$i+=$_&7;grep(vec($s,$i++,1)=1,1..($_>>3)-4);}}print"$s\n";

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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



Recent Articles