This documentation is archived and is not being maintained.

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(L"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")]
public:
property bool JavaScript {
	bool 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

Obsolete (compiler warning) in 4
Obsolete (compiler warning) in 3.5
Obsolete (compiler warning) in 3.5 SP1
Obsolete (compiler warning) in 3.0
Obsolete (compiler warning) in 3.0 SP1
Obsolete (compiler warning) in 3.0 SP2
Obsolete (compiler warning) in 2.0
Obsolete (compiler warning) in 2.0 SP1
Obsolete (compiler warning) in 2.0 SP2

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: