为IFrame连接的页面里面的元素绑定函数:
document.getElementById('iframe1').contentWindow.document.getElementById('HyperLink2').onclick = function () {
alert("123"); return false;
};
alert("123"); return false;
};
为IFrame连接的页面里面的元素绑定函数:
转载于:https://www.cnblogs.com/yangning/archive/2012/07/05/2578164.html