其他分享
首页 > 其他分享> > IE8页面失去焦点,动态删除element

IE8页面失去焦点,动态删除element

作者:互联网

当页面失去焦点(切换到其他标签页 / 切换到其他软件),触发失焦事件,然后动态删除element

兼容IE8

if(window.ActiveXObject){
    window.attachEvent('onblur', function(){
        document.getElementById('EloamView').removeNode(true);
    })
}

 

标签:IE8,删除,element,window,切换,页面
来源: https://www.cnblogs.com/shiyixirui/p/14824620.html