
Summary: parseInt() pulls out the Integer from a string while parseFloat() pulls out the Float from a string. NOTE: The string must start with a number otherwise NaN (Not a Number) is returned. The code below is an example of "browser detection" var br; var bName = navigator.appName; NOTE: // "n3" is short for Netscape 3.x or greater or JavaScript 1.1 or greater if (br == "n3") { bName (browser Name) & bVer (browser Version) give us enough information to decide what the browsers are capable of based on the information we just gathered. |