Skip to content Skip to sidebar Skip to footer

Is It Possible To Stop Resizing A Browser Window With JQuery?

i want to stop my broswer from resizing when it's got a width by 300px. is this possible? and how? this is what i tried: $(window).resize(function(){ if ($(window).width() <

Solution 1:

$(window).resize(function(){
    if ($(window).width() <= 300) {
       window.resizeTo(300 ,$(window).height());
    }
});

Try this. If your window is resized to less than 300 force the window to resize to 300 x whatever the current height is.


Post a Comment for "Is It Possible To Stop Resizing A Browser Window With JQuery?"