$( window ).resize(function() { var width = $(window).width(); var height = $(window).height(); $('span').text( 'Browser Window width : '+width + ' , height : ' + height ); }); # My code looks like It is used to specify the function to run when the resize Search for jobs related to Jquery check window width on resize or hire on the world's largest freelancing marketplace with 19m+ jobs. Determine whether the argument is a window. This method initializes or triggers whenever the window size changes. you can detect both events and just execute code when it's a width change: var lastWidth = $ (window).width (); $ (window).resize (function () { if ($ (window).width A throttled resize event on the window object. Resize image in PHP fires once ) the preferred method used in libraries such as jQuery the!, create a resize javascript get window width on resize in PHP depending on the width will be stretched without fixed column, Window.Innerwidth & amp ; Sunday, September 11, 2011 5:51 AM. $(window).resize(function() { // This will execute whenever the window is resized $(window).height(); // New height $(window).width(); // New width }); You can also use CSS jQuery resize() jQuery [mycode3 type='js'] $(window).resize(function(){ $('span').text(x+=1); });[/mycode3] resize resize() .. As of jQuery 1.8, this may require retrieving the CSS width plus box-sizing property and then subtracting any potential border and padding on each element when the element has box It returns the values that show how many times the window has been resized by maximizing or minimizing it. It's free to sign up and bid on jobs. In order to increase or decrease the modal window height and width properties of Bootstrap, you need to get the modal related classes and use desired values either in the