Topics Search

Getting information about the browser with JavaScript

Getting information about the browser with JavaScript
Views: 190
If you've been looking for a way to give cutting-edge content to visitors with the latest browsers, yet not leave users with older browsers out in the cold, detecting browser version, platform, and capabilities with JavaScript may be the answer.
Sponsored Links:

More topics

 

JavaScript RegExp Example: Regular Expression Tester

Preview
Feel free to test JavaScript's RegExp support right here in your browser. Obviously, JavaScript (or Microsoft's variant JScript) will need to be enabled in your browser for this to work. Since this tester is implemented in JavaScript, it will reflect the features and limitations of your web browser's JavaScript implementation.
 

Determining JavaScript cookie support in client's browser

Preview
If your script relies on JavaScript cookies to store and persist information, it's a good idea to always make sure the user's browser has cookies enabled first. This tutorial shows you how to perform this detection.
 

JavaScript Promises

Preview
JavaScript is single threaded, meaning that two bits of script cannot run at the same time, they have to run one after another. In browsers, JavaScript shares a thread with a load of other stuff. What that stuff is differs from browser to browser, but typically JavaScript is in the same queue as painting, updating styles, and handling user actions (such as highlighting text and interacting with form controls). Activity in one of these things delays the others.
 

Browser Detect Script

Preview
Our client side browser sniffer based on JavaScript, which includes links from our popular object and method detection tests to more detailed information on how they work.
 

JavaScript Browser Detection

Preview
Browser detection allows you to find out what browser your viewer is using, and then perform a script based on it-- or just to send a friendly message to those with your favorite browser.
 

Resources for JavaScript and DOM Compatibility Tables

Preview
Although Can I Use is great for many cutting-edge features, there’s still a lot of JavaScript and DOM stuff that’s not included in there. So what other options are there for looking up browser support for many different JavaScript and DOM features? I’m always doing research on various front-end technologies, but the one thing I’ve yet to find is a really good one-stop resource that lists browser support for all aspects of JavaScript and the DOM, including the various HTML5 APIs.
 

Browser Version Control

Preview
There are different browsers and versions out there. Thus you, the programmer, do not know what JavaScript capabilities the user has. Insuring that the scripts you write run in most users browsers can be done in a few different ways.One way is to use JavaScript to check which browser they are using, and then program accordingly. This is the most common way to avoid any scripting error.
 

Browser environment

Preview
The browser provides us with a hierarchy of objects which we can use to control and access various information about time, screen, page, elements on a page etc. On the top is the window, also called global object. All other objects form 3 groups: Document Object Model, Browser Object Model, JavaScript Objects and Functions...
 

Say Hello to HTML5 Web Worker

Preview
Have you ever been to a website that didn't respond to your click and froze or crashed your browser? The cause most likely JavaScript, especially those site with JavaScript-heavy. In order to speed up your JavaScript processing time, there are several ways to optimize your JavaScript, such as with the help of Web Worker.
 

Five JavaScript Errors That Attack Without Warning

Preview
We run web applications in a hostile environment. With each page-view, our JavaScript is deployed over an unpredictable network into a browser that we do not control. It’s scary, but we’ve broken down five JavaScript errors that impact JavaScript apps today, usually without the developers even knowing about the problem.