Options Window: Miscellaneous: JavaScript

See Also

You use this panel to configure settings that effect the way the IDE provides support for JavaScript when coding or debugging applications.

You can access this panel by choosing Tools > Options from the main menu, clicking the Miscellaneous category and then clicking the JavaScript tab.

You can specify the following settings:

Targeted Browsers

This setting allows you to specify which browsers you intend your applications to work with. By default, the IDE supports all listed browsers. But if for example you have no intention of making your applications work on Internet Explorer 5.5, you can change the Targeted Browsers setting to reflect that.

To specify a targeted browser, select a browser and corresponding version from the available options. Browsers include:

The IDE uses this setting to provide warnings and documentation contained in code completion. For example, trailing commas in initializer lists can cause problems on Internet Explorer. If you are not targeting Internet Explorer, no warnings will display. Similarly, if you try to use a JavaScript method that is unavailable on one or more of your targeted browsers, the IDE notifies you by displaying a warning in the editor. In code completion, a strike-through line displays on items that are not supported by all browers in your target list.

JavaScript Version

This setting allows you to specify which version of the JavaScript language you want the IDE to treate your sources as. For example, in newer versions of JavaScript you can use the let keyword in assignments. In older versions of JavaScript this would be an error (or, depending on the context, a variable name).

To specify a JavaScript version, select an option from the drop-down list. Available versions include 1.0 to 1.8.

This setting can be useful in cases where you have specific files for which you want to use new language features. Or, you may be using JavaScript for server-side logic and need to specify the language version.

See Also
Using the Options Window
Changing the Default Web Browser

Legal Notices