navigator.javaEnabled()

Availability

BlackBerry Device Software version 3.8 or later

The javaEnabled() method tests whether the browser supports Java or not.

Syntax

navigator.javaEnabled()

Parameters

None.

Return values

In the case of the BlackBerry Browser, always returns a value of false.

Exceptions

None.

Examples

The following code fragment runs the function doThis if Java is supported otherwise, it runs the function doThat:

if (navigator.javaEnabled()) {
   doThis();
}
else doThat();

Last modified: 2013-08-14