@_jscript_version

JScript3.0+Syntax

@_jscript_version

Description

The @_jscript_version variable is used in conditional compilation to hold the JScript version number in major.minor format.

Warning

Before accessing the @_jscript_version variable, use the @cc_on statement to define the variable.

Example

Listing 9.4 uses the @jscript_version variable to display the JScript version that is being used.

Listing 9.4 Determine JScript Version
<script language="JScript">
<!-- Hide

//Set conditional compilation so @_jscript_version variable will be defined.
@cc_on

//Display the JScript verision number using the @_jscript_version variable
document.write("The JScript version is ",@_jscript_version);

//Hide End -->
</script>
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.