Error with javascript in firefox

↘锁芯ラ 提交于 2019-12-06 00:00:43

replace:

document.all['companyURL'].innerHTML = vars[0];

with:

document.getElementById('companyURL').innerHTML = vars[0];

document.all is not supported by mozilla/FF

you can just use document.getElementById("companyURL") there

document.all is an old IE4 standard. You should be using document.getElementById()

I would recommend you leverage one of the common javascript libraries that will abstract the different browsers implementations.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!