window.addEventListener('resize', reportWindowSize);
window.addEventListener('resize', functionName);
//PUT IN YOUR BROWNSER'S CONSOLE OR CODE "OnCLick()"
javascript:(function(){window.open(document.URL, '','width=320,height=480');})();
window.addEventListener('resize', function(event) {
...
}, true);
window.resize = event => {
// Code here
};
1
2
3
$( window ).resize(function() {
$( "#log" ).append( "<div>Handler for .resize() called.</div>" );
});
addEventListener('resize', (event) => {});
onresize = (event) => {};