Close window without warning dialogue?

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default Close window without warning dialogue?

    I have a flash movie in a HTML page.
    When one button is clicked, it launches a blank window and loads another
    html page.
    That html page has a form on it, that submits data to a database and then
    redirects to a 'thankyou' page.
    I want the thankyou page to close after 10 seconds.
    The code I have tried always pops up the warning (this page is trying to
    close... blah blah) but I want to close the window without the warning.
    I was under the impression that this sub window (spawned frmo the main
    window) would be ok to do that with - but my code doesn't seem to agree.
    Can anyone offer me a pointer on how to do this?

    My code:

    function closeMe(){
    var timeval = 5000;
    var t = setTimeout("this.close()",timeval);
    }

    <body onLoad="closeMe()">


    Cheers,
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

  2. Similar Questions and Discussions

    1. Close window
      Hello, how can you close a pop up window with vb in asp.net? thanks
    2. close my project that is in a browser window (close this window)
      How can I do this with a button? What do I have to put into button?
    3. MIAW forget window vs. close window
      I'm having a problem with forget window. Sometimes when I forget a window, the projector crashes. The problem sometimes happens the first time I...
    4. Show Message close dialogue "X"
      Hi Group Is there anyway to disable the little "X" in the top right hand corner of the Show Message and Show Custom Dialogue Boxes? Or at...
    5. window sizing & close this window code
      Sharon wrote on 16 jul 2003 in microsoft.public.inetserver.asp.general: No ASP to be seen, Sharon, please see a clientside NG, --...
  3. #2

    Default Re: Close window without warning dialogue?

    Hi Chris,
    Actually, it works perfectly in Mozilla!
    Just not Explorer then... dammit!

    Oh well, I guess it will have to do.
    Unless you have any suggestions?
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

  4. #3

    Default Re: Close window without warning dialogue?

    Wish I did. Sorry about that :-(

    Best regards,
    Chris

    "RobGT" <[email protected]> wrote in message
    news:bf6iqi$7f1$[email protected]..
    > Oh well, I guess it will have to do.
    > Unless you have any suggestions?

    Chris In Madison Guest

  5. #4

    Default Re: Close window without warning dialogue?

    Does this help?
    [url]http://www.macromedia.com/cfusion/tipsubmission/tip_detail.cfm?tipid=511[/url]


    "RobGT" <[email protected]> wrote in message
    news:bf6iqi$7f1$[email protected]..
    > Hi Chris,
    > Actually, it works perfectly in Mozilla!
    > Just not Explorer then... dammit!
    >
    > Oh well, I guess it will have to do.
    > Unless you have any suggestions?
    > Rob [url]http://robgt.com/[/url]
    > Extensions: [url]http://robgt.com/products/index.asp[/url]
    > Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    > Blog: [url]http://blog.robgt.com/[/url]
    >
    >

    Les Matthews Guest

  6. #5

    Default Re: Close window without warning dialogue?

    Without trying that code (I have done this a different way now) I would say
    that it would definitely help!
    Many thanks!
    Cheers,
    Rob [url]http://robgt.com/[/url]
    Extensions: [url]http://robgt.com/products/index.asp[/url]
    Tutorials: [url]http://robgt.com/tutorials/index.asp[/url]
    Blog: [url]http://blog.robgt.com/[/url]


    RobGT Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139