var isIE = (document.all)?true:false; parent.document.getElementById(" "); 或者:window.document.body.removeChild();