CD-533Appendix F . Examples from Parts (Personal web server) III and
CD-533Appendix F . Examples from Parts III and IV function isGeneration3() { return (parseInt(navigator.appVersion) == 3) } function isGeneration3Min() { return (parseInt(navigator.appVersion.charAt(0)) >= 3) } function isNav4_7() { return (isNav() && parseFloat(navigator.appVersion) == 4.7) } function isMSIE4Min() { return (isIE() && navigator.appVersion.indexOf( MSIE ) != -1) } function isMSIE5_5() { return (navigator.appVersion.indexOf( MSIE 5.5 ) != -1) } function isNN6Min() { return (isNav() && parseInt(navigator.appVersion) >= 5) } // element referencing syntax function isDocAll() { return (document.all) ? true : false } function isDocW3C() { return (document.getElementById) ? true : false } // fill in the blanks function checkBrowser() { var form = document.forms[0] form.brandNN.value = isNav() form.brandIE.value = isIE() form.win.value = isWindows() form.win32.value = isWin95NT() form.mac.value = isMac() form.ppc.value = isMacPPC() form.unix.value = isUnix() form.ver3Only.value = isGeneration3() form.ver3Up.value = isGeneration3Min() form.Nav4_7.value = isNav4_7() form.Nav6Up.value = isNN6Min() form.MSIE4.value = isMSIE4Min() form.MSIE5_5.value = isMSIE5_5() form.doc_all.value = isDocAll() Continued navigator.appCodeName
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.