@_jscript
JScript3.0+Syntax
@_jscript
Description
The @_jscript variable is used in conditional compilation to determine if JScript is being used. This variable is always true.
Example
Listing 9.2 displays an alert box based on the value of the @_jscript variable.
Listing 9.2 Detect a JScript
<script language="JScript"> <!-- Hide @if (@_jscript) alert("The @_jscript variable is true."); @else alert("The @_jscript variable is NOT true."); @end //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.