Type: Boolean
Returns True if the browser has VBScript enabled and working properly, or False if VBScript is disabled or not installed properly.
Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires the 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 "VBScriptEnabled"
bhObj.GetExtPropertiesEx
%>
<html>VBScript is:
<%
if bhObj.Browser = "IE" and LCase(left(bhObj.Platform, 3)) = "win" then
vb = bhObj.VBScriptEnabled
if vb = True then
PropVal = "Enabled"
Else
PropVal = "Disabled"
end if
else
PropVal = "Not available with this browser"
end if
response.write PropVal
%>
</html>
Special notes for this property:
This property is only available with IE under the Windows 32 and 64-bit platforms. For all other browsers and platforms this property will always return False.
If the user’s JavaScript is disabled this property will not be available.
See Also: