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 9139001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:19:50+00:00 2026-06-17T09:19:50+00:00

How do you temporarily disable all events in javascript? We want to make them

  • 0

How do you temporarily disable all events in javascript? We want to make them disabled, so that some events don’t run until after 700 miliseconds after we click something.

  • 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-17T09:19:50+00:00Added an answer on June 17, 2026 at 9:19 am

    If you’re trying to temporarily disable all clicks, then a simple way to do that without changing any of the rest of your page or code is to put up a transparent div absolutely positioned over the whole page that intercepts and stops propagation of all click events. Then, use a setTimeout() to remove that transparent div at whatever time interval you want.

    Put the blockDiv in your page HTML so it’s already there.

    In your HMTL:

    <body>
        <div id="blockDiv"></div>
        ... other page HTML here
    </body>
    

    Then, have this CSS in the page:

    #blockDiv {
        position: absolute;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        z-index: 999;
    }
    

    And, this javacript:

    $("#blockDiv").click(function(e) {
        // stop propagation and prevent default by returning false
        return false;
    });
    
    setTimeout(function() {
        $("#blockDiv").remove();
    }, 700);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to temporarily disable ALL events on an windows form? I
Is there any addon by which I can disable all catch blocks temporarily. I'm
I want to drop some data from treeview to the datagridview temporarily, but the
I've seen questions answering this with Visual Studio vs-2008-addon-to-temporarily-disable-remove-all-catch-block how-to-temporarily-deactivate-all-try-catch-blocks but can't find anything
Using MS-SQL-08: Is it possible to somehow temporarily disable dependency checking, so that I
How can I temporarily disable the onclick event listener, (jQuery preferred), after the event
I want to temporarily disable runkit (or temporarily disable a PECL extension). Do somebody
So as to restore a database from a dump, I want to temporarily disable
I'm working on a project where I need to temporarily disable all hyperlinks, and
Is there a way to temporarily disable all active breakpoints and then renable only

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.