Export (0) Print
Expand All
21 out of 22 rated this helpful - Rate this topic

DefaultClientScript Property 

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

You can set the DefaultClientScript property from either the Properties window or the DOCUMENT Property Pages dialog box. For more information, see How to: Set the DefaultClientScript Property of a Web Page.

Changing the DefaultClientScript property of a page adds a <meta> element to the <head> element that specifies the default scripting language. The element looks like the following:

<meta content="text/JScript" http-equiv="content-script-type" />

or:

<meta content="text/VBScript" http-equiv="content-script-type" />

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

<SCRIPT TYPE="text/VBScript" LANGUAGE="VBScript">
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.