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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:42:35+00:00 2026-05-27T23:42:35+00:00

In my webpage, testing on Chrome, I have a button div. The button is

  • 0

In my webpage, testing on Chrome, I have a button div. The button is styled so that it has a hover state in a different colour, and a hand-shaped mouse pointer. All this is fine.

When the button is pressed, it triggers an animation, and I don’t want to let the user press the button again until it’s done, so I put a semi-opaque div over the top to block the button.

The problem comes when the animation completes and the div is removed. The mouse pointer is over the button but the hover state isn’t active until the user actually moves the mouse, then the mouse pointer changes and all is well.

Note that the click still works – this is a purely cosmetic (but annoying) aberration.

Can I force the browser to re-evaluate the point under the cursor?

  • 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-05-27T23:42:36+00:00Added an answer on May 27, 2026 at 11:42 pm

    The correct way to prevent input to a button is to disable it. You can toggle the cursor style with the CSS cursor property.

    Javascript:

    var theButton = document.getElementById('theButton');
        theButton.disabled = true;
        theButton.setAttribute('style','cursor:default;');
    
    // animation is complete
    
    theButton.disabled = false;
    theButton.removeAttribute('style');
    

    jQuery:

    var $theButton = $('#theButton').prop('disabled',true).css('cursor','default');
    
    // animation is complete
    
    $theButton.prop('disabled',false).css('cursor','pointer');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a webpage and doing testing in different browsers. In Chrome, everything
I am testing my webpage on a server using preview dns. Just realized that
I have a webpage that pulls information from a database, converts it to .csv
I was testing a webpage that I designed on my Android 2.1 browser but
I was just testing my webpage in Adobe BrowserLab. I have 3 .replaceWith line
I have a webpage where Firefox 2 displays the font certain, really specific elements,
I have a webpage (say www.example.com/a.asp) .. I am having an iframe in this
We have an advanced webpage (ASP.NET, C#), and a application which needs to be
I have a webpage where I want the user to see a new image
I have some CSS code that hides the cursor on a web page (it

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.