JavaEnabled Property

 

Type: Boolean

 

Returns True if the browser is set to allow Java to run if Java is available on the user's machine, False otherwise.

 

Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires either the Professional or Enterprise Edition of BrowserHawk.

 

Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.

 

Example:

<%

set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "JavaEnabled"

bhObj.GetExtPropertiesEx

%>

Your Java applets enabled/disabled state is:

<% if NOT bhObj.JavaApplets then %>

Not supported with this browser

<% elseif bhObj.JavaEnabled then %>

Enabled

<% elseif NOT bhObj.JavaScriptEnabled then %>

Not detectable with JavaScript disabled

<% elseif bhObj.browser = "IE" and bhObj.majorver = 3 then

Not detectable with IE 3.x.

<% else %>

Disabled

<% end if %>

 

Special notes for this property:

 

See Also:

JavaVersion Property

JavaVendor Property

MSJVMBuild Property

Plugin_JavaVer Property

JavaAppletsProperty

GetExtPropertiesEx Method

SetExtProperties Method