window.addEventListener('resize', functionName);
//PUT IN YOUR BROWNSER'S CONSOLE OR CODE "OnCLick()"
javascript:(function(){window.open(document.URL, '','width=320,height=480');})();
window.onresize = function() {
if (window.innerHeight >= 820) { /* ... */ }
if (window.innerWidth <= 1280) { /* ... */ }
}
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) => {};