HttpCapabilitiesBase.JavaScript Property

 
Note: This API is now obsolete.

Gets a value indicating whether the browser supports JavaScript.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[<ObsoleteAttribute("The recommended alternative is the EcmaScriptVersion property. A Major version value greater than or equal to 1 implies JavaScript support. http://go.microsoft.com/fwlink/?linkid=14202")>]
member JavaScript : bool with get

Property Value

Type: System.Boolean

true if the browser supports JavaScript; otherwise, false. The default is false.

If the browser supports JavaScript but scripting is disabled through a security setting, the JavaScript property will return true but script will not execute on the browser.

The following code example shows how to determine whether the browser supports JavaScript.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: