• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Description

Conditional compilation is a feature that Internet Explorer makes available for its browsers. For JavaScripters, it provides the capability to define custom code blocks that run only within the Internet Explorer browser. You can also use it to write code that will not run in Internet Explorer 4+, but will run otherwise.

Conditional compilation supports a few variables that are not otherwise available to the user. Some of these are about the version of JScript in place; others are about the kind of central processing unit (CPU) the client computer has. A couple identify the operating system as 16-bit or 32-bit. (The information in predefined conditional compilation objects can be deduced from the navigator object in Chapter 18, “navigator,” in every case.)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint