js window resize listener

147

add event listener on width screen resize -

window.addEventListener('resize', reportWindowSize);

detect resize window javascript -

window.addEventListener('resize', functionName);

resize function in addEventListener JS -

window.addEventListener('resize', function(event) {
    ...
}, true);

Comments

Submit
0 Comments