搜索 | 用户支持

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

Learn More

why is navigator.javaEnabled() returning false even if Enable Javascript is checked under tools ->options->content. How can I make it to return true. This happens only on Firefox 4

  • 2 个回答
  • 6 人有此问题
  • 88 次查看
  • 最后回复者为 maheshhbhat

more options

I following java script in my xhtml : <script language="JavaScript"> <!-- if(navigator.javaEnabled()) { window.alert('java Enabled'); document.location.href = "login_page.do"; } else{ window.alert('java not Enabled'); } //--> </script> In firefox 4.0.1 navigator.javaEnabled() always returns false even if Enable Javascript is checked under tools ->options->content. How can I make it to return true. Is there any other setting or plugins that I need to make it return true?Please advise. Thanks Mahesh

I following java script in my xhtml : <html> <head> <script language="JavaScript"> <!-- if(navigator.javaEnabled()) { window.alert('java Enabled'); document.location.href = "login_page.do"; } else{ window.alert('java not Enabled'); } //--> </script> </head> <BODY> In firefox 4.0.1 navigator.javaEnabled() always returns false even if Enable Javascript is checked under tools ->options->content. How can I make it to return true. Is there any other setting or plugins that I need to make it return true?Please advise. Thanks Mahesh

被采纳的解决方案

Ah, there is a difference between Java and JavaScript. You may need the latest Java plugin from Oracle.

http://www.java.com/en/download/testjava.jsp

More background: http://kb.mozillazine.org/Javascript_is_not_Java

定位到答案原位置 👍 0

所有回复 (2)

more options

选择的解决方案

Ah, there is a difference between Java and JavaScript. You may need the latest Java plugin from Oracle.

http://www.java.com/en/download/testjava.jsp

More background: http://kb.mozillazine.org/Javascript_is_not_Java

more options

Thanks for your help!. I installed the exe from the link and it works now.