我可以在放大或缩小网页上调用Javascript函数吗?

问题描述:

我可以在放大或缩小网页上调用Javascript函数吗?因为我想在网页大小改变时调用javascript函数。



Plz帮助我。



谢谢

Can I call Javascript Function on zoom-in or zoom-out webpage? As I want to call a javascript function when the size of web page is changing.

Plz help me.

Thanks

是朋友....找到解决方案....



Yes friends.... Found the solution....

window.onresize = resize;
function resize() {
    alert("Windows is resized...");
}


请参阅下面的小提琴:

jsFiddle调整窗口大小

希望它有所帮助:)
See the below fiddle:
jsFiddle for resize the window
Hope it helps :)