@_x86

JScript3.0+Syntax

@_x86

Description

The @_x86 variable is used in conditional compilation to determine if a Intel processor is being used. When the variable is not true, it is defined as NaN.

Example

Listing 9.10 alerts the user when an Intel processor is used.

Listing 9.10 Detect an Intel Processor
<script language="JScript">
<!-- Hide

@if (@_x86)
  alert("You are using an Intel processor.");
@else
  alert("You are NOT using an Intel processor.");
@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.