tailieunhanh - JavaScript Bible, Gold Edition part 205

JavaScript Bible, Gold Edition part 205. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | CD-532 Part VI Appendixes are perfectly usable in if conditional phrases . If this kind of browser detection occurs frequently in your pages consider moving these functions into an external .js source library for inclusion in your pages see Chapter 13 . When you load this page it presents fields that display the results of each function depending on the type of browser and client operating system you use. Listing 28-1 Functions to Examine Browsers HTML HEAD TITLE UserAgent Property Library TITLE SCRIPT LANGUAGE JavaScript basic brand determination function isNav return Netscape function isIE return Microsoft Internet Explorer operating system platforms function isWindows return Win -1 function isWin95NT return isWindows Win16 -1 Windows -1 function isMac return Mac -1 function isMacPPC return isMac PPC -1 PowerPC -1 function isUnix return X11 -1 browser versions function isGeneration2 return parseInt 2 Appendix F Examples from Parts III and IV CD-533 function isGeneration3 return parseInt 3 function isGeneration3Min return parseInt 0 3 function isNav4_7 return isNav parseFloat function isMSIE4Min return isIE -1 function isMSIE5_5 return -1 function isNN6Min return isNav parseInt 5 element referencing syntax function isDocAll return true false function isDocW3C return true false fill in the blanks function checkBrowser var form 0 isNav isIE isWindows isWin95NT isMac .

TỪ KHÓA LIÊN QUAN