This documentation is archived and is not being maintained.

defaultClientScript Property

Visual Studio .NET 2003

The defaultClientScript property of an HTML document sets the default scripting language used by client-side <SCRIPT> elements.

You can set the defaultClientScript property either from the Properties window or from the DOCUMENT Property Pages dialog box. For help on how to set the defaultClientScript property, see Setting the defaultClientScript Property of an HTML Document.

Setting the defaultClientScript property in Visual Studio .NET inserts a <META NAME="vs_defaultClientScript"> element into the <HEAD> portion of an HTML document. For example, if you set the defaultScriptingLanguage property to JavaScript, this <META> element is inserted:

<meta name="vs_defaultClientScript" content="JavaScript">.

You also can specify the scripting language by inserting the attributes type (for Web browsers that support HTML 4.0 and later) and language (for older HTML 3.2 browsers) into a <SCRIPT> element:

<SCRIPT TYPE="text/VBScript" LANGUAGE="VBScript">

See Also

HTML and XML Schema Extensibility | Properties Window | General Tab, DOCUMENT Property Pages Dialog Box | Creating Scripts and Editing Event Handlers in HTML Designer