简体   繁体   English

在为iframe加载函数之前

[英]before load function for iframe

is there any way to capture the state of iframe when data is getting load? 有没有办法在数据加载时捕获iframe的状态? Onload is fired when all of content is load. 加载所有内容时会触发Onload。

please help 请帮忙

thanks 谢谢

$('#frame').load(function() { 
                    // do work
                     });

This Jquery load function runs before function 'onload'. 这个Jquery加载函数在函数'onload'之前运行。 i also implemented this,as an alternate for before load because beforeload is not supports for iframe 我也实现了这个,作为load之前的替代,因为beforeload不支持iframe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM