JavaScriptEnabled Property

 

Type: Boolean

 

Returns whether the visitor’s JavaScript is enabled. If the visitor has disabled their JavaScript support this property will return False. Otherwise if their JavaScript is enabled it returns True.

 

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 "JavaScriptEnabled"

bhObj.GetExtPropertiesEx

%>

<html>

Your JavaScript enabled/disabled state is:

<% if NOT bhObj.JavaScript then %>

Not supported with this browser

<% elseif bhObj.JavaScriptEnabled then %>

Enabled

<% else %>

Disabled

<% end if %>

</html>

 

See Also:

JavaScript Property

JavaScriptBuild Property

JavaScriptVer Property

JavaEnabled Property

GetExtPropertiesEx Method