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.
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 });
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