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

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

兼容IE8

if(window.ActiveXObject){
    window.attachEvent('onblur', function(){
        document.getElementById('EloamView').removeNode(true);
    })
}
原文地址:https://www.cnblogs.com/shiyixirui/p/14824620.html