HttpCapabilitiesBase::JavaScript Property
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Return to top
Gets a value indicating whether the browser supports JavaScript.
Assembly: System.Web (in System.Web.dll)
public: [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")] property bool JavaScript { bool get(); }
Property Value
Type: System::Booleantrue 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: