2

I need to run a script every time a table is resized (whenever the user resizes the browser window). Does anyone know how this can be done?

3 Answers 3

5
function myFunction() {
    alert('resized');
}

window.onresize = myFunction;
Sign up to request clarification or add additional context in comments.

Comments

4
window.onresize = function(){alert('test');}

Comments

1

If you use Jquery,

$(window).resize(function() {

alert("test now");

});

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.