Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7725727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:00:48+00:00 2026-06-01T05:00:48+00:00

When displaying a confirm box in javascript, there seems to be a delay after

  • 0

When displaying a confirm box in javascript, there seems to be a delay after clicking Yes or No when the Yes or No causes a page redirect. The delay is about the duration of how long the confirm box is open for. This only happens in Chrome for me. Does anyone have a solution to make this so there is no delay in Chrome?

A simple example depicting the problem:

<html>
    <head></head>
    <body>
        <script type='text/javascript'>
            var goToGoogle = confirm("Go to Google?");
            if (goToGoogle) {
                window.location.href="http://www.google.com";
            }
        </script>
    </body>
</html>

Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:00:49+00:00Added an answer on June 1, 2026 at 5:00 am

    This seems to be Issue 98275: Javascript confirm dialog creates long delay and appears to lock up page. It is marked as fixed, though it seems users are still seeing it based on the comments. I can confirm the bug is present in 18.0.1025.142.

    As for a solution for users with versions of Chrome without this bug fix, I’ve created a basic implementation of a modal dialog you can use in this jsFiddle. It is based on this article: Create a Modal Dialog Using CSS and Javascript.

    Alternatively, if you are using/plan to use jQuery, you could use jQuery dialogs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am displaying a JavaScript confirm box when the user clicks on the Delete
i am displaying the one confirm box after saving the values like this showalert(Quote
I am displaying a confirm box in my app. When the user clicks on
I am displaying a scrolled data table in a web page. This table has
I have a Registaration page with the following fields Email, Confirm Email, Password and
While displaying a popover controller for a second time (after dismissing it and then
This may be a mundane question but I wanted to confirm if displaying the
I have a registration page in Dotnetnuke. I want to have a confirm email
I've debugged the view page just to confirm the data were properly collected. And
I'm trying to delay the default action of clicking on a link, until the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.