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
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
선택된 해결법
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)
선택된 해결법
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
Thanks for your help!. I installed the exe from the link and it works now.