Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

trigger window resize

// Cross-browser solution (IE support)
var resizeEvent = window.document.createEvent('UIEvents'); 
resizeEvent.initUIEvent('resize', true, false, window, 0); 
window.dispatchEvent(resizeEvent);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #trigger #window #resize
ADD COMMENT
Topic
Name
4+7 =