【www.gdgbn.com--浏览器】

创建iframe, 添加到body中,最后添加load事件。所有浏览器下将表现一致。

var ifr = document.createelement("iframe");
document.body.insertbefore(ifr,document.body.childnodes[0]);
ifr.src = "http://www.111cn.net";
ifr.onload = function(){alert(1);};

本文来源:http://www.gdgbn.com/bangongshuma/29500/