Setting the defaultClientScript Property

The defaultClientScript property sets either JavaScript (default) or VBScript as the scripting language used on the current page.

To set the default value for the defaultClientScript property

  1. Select Options from the Tools menu to open the Options dialog box.
  2. Select the Text Editor, HTML, General page.
  3. Select a default value for the defaultClientScript property.

To adjust the value of the defaultClientScript property while editing a Web page

  1. Select the Web page in the HTML Designer.
  2. From the drop-down menu at the top of the Properties Window, select Document.
  3. Select a value for the defaultClientScript property.

    If you adjust the defaultClientScript property to a value different than the default, a META NAME=vs_defaultClientScript tag is inserted into the <HEAD></HEAD> section of your page. For instance, if you select VBScript, the following tag is added:

    <META NAME=vs_defaultClientScript content="VBScript">.

    Note   You can also specify the scripting language for a particular SCRIPT by including a type (HTML 4.0 and above) or language (HTML 3.2) attribute in the <SCRIPT></SCRIPT> tag.

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