get screen size on chnage code example Example: javascript resize event window.resize = event => { // Code here };