Javascript代码在Firefox浏览器上不起作用 [英] Javascript code not working on Firefox browser

查看:115
本文介绍了Javascript代码在Firefox浏览器上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我的ASP.net网站上有许多JavaScript代码,并且可以在Internet Explorer上很好地运行,

但问题是尽管我的firefox启用了javascript,但所有javascript代码都无法在Firefox浏览器上运行.

无论简单还是复杂,所有javascript代码都无法在firefox上运行.

仅该代码有效:

Hi everybody,

My ASP.net website has many javascript code and it work nicely on Internet Explorer,

but the problem all javascript code not work on Firefox browser although javascript is enabled on my firefox.

all javascript code never work on firefox whatever it is simple or complicated.

only that code work:

alert("any thing");



但是所有代码都无法像这样工作:



but all code not work like that:

document.getElementById("<%= lblRequiredName.ClientID %>").innerText = "qqqq";
myiframe.document.execCommand('justifycenter', 0, null);
myiframe.document.execCommand('createlink');

推荐答案

我知道与Firefox相关的浏览器兼容性(CSS和JavaScript两者)的最佳工具之一是"Firebug". />
您可以从以下链接下载并安装Firebug.
http://getfirebug.com/

http://getfirebug.com/javascript

编辑-官方Firefox Firebug.
https://addons.mozilla.org/en-US/firefox/addon/firebug/
One of the Best tool which I know for Firefox related browser compatibility(both CSS and JavaScript) is "Firebug".

You may download and install Firebug from below links.
http://getfirebug.com/

http://getfirebug.com/javascript

Edit - Official Firefox Firebug.
https://addons.mozilla.org/en-US/firefox/addon/firebug/


这篇关于Javascript代码在Firefox浏览器上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆