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

Ask A Question

Stats

  • Questions 495k
  • Answers 496k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Tough one. I would dump binary and use XML serialization… May 16, 2026 at 11:30 am
  • Editorial Team
    Editorial Team added an answer You should check each field for valid input, and then… May 16, 2026 at 11:30 am
  • Editorial Team
    Editorial Team added an answer You'll need to select the columns individually, and use the… May 16, 2026 at 11:30 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Is there a way to test JavaScript keyboard event handlers (for keypress , keyup
New to whole this jQuery (and javascript altogether, heh) and so far it's been
I have a bit of a problem with a jQuery dialog and the way
I have a large nested list that I am trying to animate using jquery
I am working on a comment script using ajax, json and jquery. I have
I have a search button tied to an update panel as a trigger like
I'm using a component written in JavaScript. The component is exposing some events. The
I've been asked to add the HopToad JavaScript Notifier to a site. The JavaScript
We have some JavaScript code that resizes <div/> elements (adjusts height/width/padding/margin etc.) based on
I have implemented an "unsaved changes" warning using techniques described on these pages: Client/JS

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.