当我在Internet Explorer中使用document.getElementById
我得到这个错误:的document.getElementById在IE
Mensaje: El objeto no acepta esta propiedad o método
翻译:
Object does not support this property or method
和停止执行
Html:
<div id="contenedor">
...
</div>
的JavaScript:
contenedor = document.getElementById("contenedor");
这在Firefox和Chrome确定。
Google翻译:'消息:对象不支持这个属性或方法' – Shaz 2011-04-06 19:51:02
你可以发布HTML/JS吗? – Chandu 2011-04-06 19:51:46
你可以发布,你的HTML代码和更多的JS.Looks,你的元素的ID属性没有定义。 – sergionni 2011-04-06 19:52:00