Get client browser information


Description: Detect the user browser and other information about the clients browser.


<!doctype html>
    <html lang="en">
      <meta charset="utf-8">
      <title>browser demo</title>
      <script src=""></script>
      <div class="result"></div>
      <script type="text/javascript">
               var browser = bitsyCode.browser();


  • Usage

    • How to use:

      The .browser() method will return information about the client browser.

    • USAGE:

    • Get specific browser information:

      var browser = bitsyCode.browser();
      alert(; //alerts browser name
      alert(browser.version); //alerts browser version
  • Options

    • What options are there:

      There are no options for this method.

  • Returns

    • Returns
          object {
              codeName: String, // returns the code name of the browser (All modern browsers returns "Mozilla", for compatibility reasons.)
              name: String, // returns the name of the browser.
              version: String, //returns the version information of the browser.
              agent: String, // returns the value of the user-agent header sent by the browser to the server.
              platform: String, // returns for which platform the browser is compiled.
              engine: String, // 	returns the engine name of the browser.
              cookies: Boolean, // determines whether cookies are enabled in the browser.
              language: String, // returns the language of the browser
              javaEnable: Boolean // specifies whether or not the browser has Java enabled
              online: Boolean // determines whether the browser is online