ie5下,appendChild方法加的iframe操作出错,说是“类不支持automation操作”?
peaty 2002-10-30 09:25:53 以下代码在ie6下正确,在5下出错,说是类不支持automation操作
frameObj = document.createElement("<iframe name=\"frameForTree\" id=\"frameForTree\" height=0;width=0>");
document.body.appendChild(frameObj);
用以上的方法来生成的iframe,用以下的方法访问,在ie5下出错
document.frames["frameForTree"].location.replace(loadPageUrl+operateObj.node_id);