• Page asks for permission to close

    Home » Forums » Developers, developers, developers » Web design and development » Page asks for permission to close

    Author
    Topic
    #362054

    Hi All

    Is it possible using script to close an HTML page in IE 5 without getting the confirmation dialog box promting the user if they really wish to close.

    I try and use the window.close() method but it always prompts me if it is allowed to close?

    Your help will be appreciated.

    Thanks

    Viewing 0 reply threads
    Author
    Replies
    • #549473

      It depends on how you open the window. If you use a tag like this:

      the window.close() method will NOT prompt you, because you created an entirely new window.

      Similarly, you can use a tag like this to open a new window:

      Again, you will not be prompted when you have a “java script:window.close()” link on the new page.

      There’s a good Web reference page (these examples are included) at http://www.michael-thomas.com.

      Hope this helps,

    Viewing 0 reply threads
    Reply To: Reply #549473 in Page asks for permission to close

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel