FF下提示Node cannot be inserted
在搜索下面代码的时候
top.document.appendChild(popupContact);
提示"Node cannot be inserted at the specified point in the hierarchy" code: "3".求助google得到大概意思是,不允许插入节点.
在FF下,不应该对document添加子节点,应该向body.代码相应修改为
top.document.body.appendChild(popupContact);
另外,jQuery下面的代码在iframe下运行不正常
$("form").append(popupContact);
需要修改为
$("body").append(popupContact);
Tag标签: JS FF
- 1. 利用Javascript获得和设置FCKeditor值2010-02-22
- 2. FF下提示Node cannot be inserted2010-02-03
- 3. SELECT联动2009-11-13
- 4. Javascript获取某个url参数[收藏]2009-07-13
- 5. 实现回车触发事件后不引起其它事件2009-07-07





