innerHTML or outerHTML
For example:
var crtDIV = document.getElementById('divIDName');
if (crtDIV) {
crtDIV.parentNode.removeChild(crtDIV);
crtDIV.outerHTML = "";
}
It is possible to find that the entire interface cannot be selected, and only links can be clicked.
To solve this exception or IE error, only:
Do not use outerHTML, or innerHTML.
If it is When innerHTML
is used, just give the innerHTML object .focus(); obj.focus() and you can operate the page normally.