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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:34:11+00:00 2026-05-15T05:34:11+00:00

Is there any way with jQuery or JavaScript to trigger a function when the

  • 0

Is there any way with jQuery or JavaScript to trigger a function when the user ends to resize the browser window?

In other terms:

  1. Can I detect mouse up event when user is resizing the browser window? Otherwise:
  2. Can I detect when a window resize operation is finished?

I’m currently only able to trigger an event when the user start to resize the window with jQuery

  • 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-15T05:34:11+00:00Added an answer on May 15, 2026 at 5:34 am

    You can use .resize() to get every time the width/height actually changes, like this:

    $(window).resize(function() {
      //resize just happened, pixels changed
    });
    

    You can view a working demo here, it takes the new height/width values and updates them in the page for you to see. Remember the event doesn’t really start or end, it just “happens” when a resize occurs…there’s nothing to say another one won’t happen.


    Edit: By comments it seems you want something like a “on-end” event, the solution you found does this, with a few exceptions (you can’t distinguish between a mouse-up and a pause in a cross-browser way, the same for an end vs a pause). You can create that event though, to make it a bit cleaner, like this:

    $(window).resize(function() {
        if(this.resizeTO) clearTimeout(this.resizeTO);
        this.resizeTO = setTimeout(function() {
            $(this).trigger('resizeEnd');
        }, 500);
    });
    

    You could have this is a base file somewhere, whatever you want to do…then you can bind to that new resizeEnd event you’re triggering, like this:

    $(window).bind('resizeEnd', function() {
        //do something, window hasn't changed size in 500ms
    });
    

    You can see a working demo of this approach here
    ​

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

Sidebar

Related Questions

Is there any way that I can use JavaScript (and jQuery) to create a
Is there any way I can get jQuery to perform a function when you
Just like in JavaScript : opener.document.getElementByName jQuery: ?? Is there any way to get
Is there any way? Using Javascript/JQuery? I really really really need it. Any help
Is there any way to determine the pixel length of a string in jQuery/JavaScript?
Is there any way to blur images with JavaScript/jQuery so that when they are
Is there any way that I can pass a function as a json string
Is there any way to find memory leaks in javascript or jquery. i am
Is there any way to create blocking dialog box using Javascript/JQuery/Ajax ... I have
Is there any way to open RDP Connection window using jquery(client side) ? My

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.