VBScriptEnabled Property

 

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:

 

See Also:

VBScriptBuild Property

VBScript Property

JavaScriptBuild Property

GetExtPropertiesEx Method

SetExtProperties Method

ActiveXEnabled Property