IFrame

为IFrame连接的页面里面的元素绑定函数:

document.getElementById('iframe1').contentWindow.document.getElementById('HyperLink2').onclick = function () {
                alert("123"); return false;
            };

posted on 2012-07-05 17:13  大柠子  阅读(201)  评论(0)    收藏  举报

导航