搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Javascript runs in all the latest versions of Opera, IE, Chrome and Safari (for windows)

more options

I have been working on the website stsontario.org a while ago for someone. I have used a javascript file to apply a background element with a specified height based on the height of the document after loading the page. It shows on the other four browsers but does not show on Mozilla.

Both my javascripts are external files imported near the end of the body tag.

In order to debug the code I made an attempt to put document.write("hi"); at the top of my file and even found this does not show on the page. Why does my javascript code not work on Mozilla! :'(

I have been working on the website stsontario.org a while ago for someone. I have used a javascript file to apply a background element with a specified height based on the height of the document after loading the page. It shows on the other four browsers but does not show on Mozilla. Both my javascripts are external files imported near the end of the body tag. In order to debug the code I made an attempt to put document.write("hi"); at the top of my file and even found this does not show on the page. Why does my javascript code not work on Mozilla! :'(

被采纳的解决方案

You need to change any \ in a path URL to / to work in Firefox. Firefox encodes the \ character instead of flipping it to / like other browsers. Sorry for the inconvenience!

定位到答案原位置 👍 1

所有回复 (1)

more options

选择的解决方案

You need to change any \ in a path URL to / to work in Firefox. Firefox encodes the \ character instead of flipping it to / like other browsers. Sorry for the inconvenience!

由jscher2000 - Support Volunteer于修改