1 if(document.createEvent) { 2 var event = document.createEvent("HTMLEvents"); 3 event.initEvent("resize", true, true); 4 window.dispatchEvent(event); 5 } else if(document.createEventObject) { 6 window.fireEvent("onresize"); 7 }
1 if(document.createEvent) { 2 var event = document.createEvent("HTMLEvents"); 3 event.initEvent("resize", true, true); 4 window.dispatchEvent(event); 5 } else if(document.createEventObject) { 6 window.fireEvent("onresize"); 7 }