Jump to content

javaEnabled() method

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Blue Indian

Blue Indian

    Learning Programmer

  • Members
  • PipPipPip
  • 67 posts
I have a question about the javaEnabled() method. If you a user has disabled javascript in their browser, how can this method work? If javascript is disabled, this method should never get called, right?

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
If you're talking about navigator.javaEnabled(), or window.navigator.javaEnabled() Then it's not testing if JavaScript is enabled, but Java. There's quite a difference between the 2.

#3
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
Well as oxano pointed out
window.navigator.javaEnabled().
is a test for Java to be enabled and for checking if java script is enabled there are probably 100's of ways both are different