code: public boolean isJavaScriptEnabled()
      {
          if (javaScriptEnabled == null)
          {
              synchronized(this)
              {
                  // double lock checking idiom on volatile variable works since java5
                  if (javaScriptEnabled == null)
                  {
                      // no info means that it is default -> true
                      javaScriptEnabled = Boolean.TRUE;
  
                      FacesContext facesContext = FacesContext.getCurrentInstance();
                      if (facesContext != null)
                      {
                          Cookie cookie = (Cookie) facesContext.getExternalContext().
                                  getRequestCookieMap().get(COOKIE_NAME_NOSCRIPT_ENABLED);
                          if (cookie!= null)
                          {
                              javaScriptEnabled = Boolean.parseBoolean((String) cookie.getValue());
                          }
                      }
                  }
              }
          }
          return javaScriptEnabled;
      }
docs: Defaults to <code>true</code>.
  @return if the user has JavaScript enabled