js simulated window of onResizestart / onResizend events

 

In the event of the window object, there onresize event, but did not onresizestart and onresizend event, a little inconvenient for the front-end development.

 

Source file download

 

Call:

1      Event.onResizend( function (){        
2          document.body.innerHTML  =  document.body.innerHTML  +   ' resize ending... <br/> ' ;        
3      });
4      Event.onResizestart( function (){        
5          document.body.innerHTML  =  document.body.innerHTML  +   ' resize starting... <br/> ' ;        
6      });   

 

Reproduced in: https: //www.cnblogs.com/likestone/archive/2011/05/13/2045772.html

Guess you like

Origin blog.csdn.net/weixin_33858485/article/details/93752180