• Skip to main content
  • Skip to search
  • Skip to select language
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. Navigator
  4. Navigator.javaEnabled()

Table of contents

  • Syntax
  • Example
  • Specifications
  • Browser compatibility

Navigator.javaEnabled()

This method always returns false.

Syntax

result = window.navigator.javaEnabled()

Example

if (window.navigator.javaEnabled()) {
    // code will never be executed; the condition is always false
}

Specifications

Specification
HTML Standard
# dom-navigator-javaenabled

Browser compatibility

BCD tables only load in the browser

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Jan 25, 2022, by MDN contributors

Related Topics

  1. HTML DOM API
  2. Navigator
  3. Properties
    1. activeVRDisplays
    2. appCodeName
    3. appName
    4. appVersion
    5. battery
    6. buildID
    7. clipboard
    8. connection
    9. contacts
    10. cookieEnabled
    11. credentials
    12. deviceMemory
    13. doNotTrack
    14. geolocation
    15. hardwareConcurrency
    16. hid
    17. keyboard
    18. language
    19. languages
    20. locks
    21. maxTouchPoints
    22. mediaDevices
    23. mediaSession
    24. mimeTypes
    25. onLine
    26. oscpu
    27. pdfViewerEnabled
    28. permissions
    29. platform
    30. plugins
    31. product
    32. productSub
    33. serial
    34. serviceWorker
    35. storage
    36. userAgent
    37. userAgentData
    38. vendor
    39. vendorSub
    40. webdriver
    41. windowControlsOverlay
    42. xr
  4. Methods
    1. canShare()
    2. clearAppBadge()
    3. getBattery()
    4. getGamepads()
    5. getUserMedia()
    6. getVRDisplays()
    7. javaEnabled()
    8. mozIsLocallyAvailable()
    9. msLaunchUri()
    10. registerProtocolHandler()
    11. requestMediaKeySystemAccess()
    12. requestMIDIAccess()
    13. sendBeacon()
    14. setAppBadge()
    15. share()
    16. taintEnabled()
    17. vibrate()
  5. Related pages for HTML DOM
    1. BeforeUnloadEvent
    2. DOMStringMap
    3. ErrorEvent
    4. GlobalEventHandlers
    5. HTMLAnchorElement
    6. HTMLAreaElement
    7. HTMLAudioElement
    8. HTMLBRElement
    9. HTMLBaseElement
    10. HTMLBaseFontElement
    11. HTMLBodyElement
    12. HTMLButtonElement
    13. HTMLCanvasElement
    14. HTMLContentElement
    15. HTMLDListElement
    16. HTMLDataElement
    17. HTMLDataListElement
    18. HTMLDialogElement
    19. HTMLDivElement
    20. HTMLDocument
    21. HTMLElement
    22. HTMLEmbedElement
    23. HTMLFieldSetElement
    24. HTMLFormControlsCollection
    25. HTMLFormElement
    26. HTMLFrameSetElement
    27. HTMLHRElement
    28. HTMLHeadElement
    29. HTMLHeadingElement
    30. HTMLHtmlElement
    31. HTMLIFrameElement
    32. HTMLImageElement
    33. HTMLInputElement
    34. HTMLKeygenElement
    35. HTMLLIElement
    36. HTMLLabelElement
    37. HTMLLegendElement
    38. HTMLLinkElement
    39. HTMLMapElement
    40. HTMLMediaElement
    41. HTMLMetaElement
    42. HTMLMeterElement
    43. HTMLModElement
    44. HTMLOListElement
    45. HTMLObjectElement
    46. HTMLOptGroupElement
    47. HTMLOptionElement
    48. HTMLOptionsCollection
    49. HTMLOutputElement
    50. HTMLParagraphElement
    51. HTMLParamElement
    52. HTMLPictureElement
    53. HTMLPreElement
    54. HTMLProgressElement
    55. HTMLQuoteElement
    56. HTMLScriptElement
    57. HTMLSelectElement
    58. HTMLShadowElement
    59. HTMLSourceElement
    60. HTMLSpanElement
    61. HTMLStyleElement
    62. HTMLTableCaptionElement
    63. HTMLTableCellElement
    64. HTMLTableColElement
    65. HTMLTableDataCellElement
    66. HTMLTableElement
    67. HTMLTableHeaderCellElement
    68. HTMLTableRowElement
    69. HTMLTableSectionElement
    70. HTMLTemplateElement
    71. HTMLTextAreaElement
    72. HTMLTimeElement
    73. HTMLTitleElement
    74. HTMLTrackElement
    75. HTMLUListElement
    76. HTMLUnknownElement
    77. HTMLVideoElement
    78. HashChangeEvent
    79. History
    80. ImageData
    81. Location
    82. MessageChannel
    83. MessageEvent
    84. MessagePort
    85. PageTransitionEvent
    86. Plugin
    87. PluginArray
    88. PopStateEvent
    89. PromiseRejectionEvent
    90. RadioNodeList
    91. ValidityState
    92. Window
    93. WindowEventHandlers
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2022 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies