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:

Similar posts...

 

JavaScript RegExp Example: Regular Expression Tester

JavaScript RegExp Example: Regular Expression Tester Icon
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

Determining JavaScript cookie support in client's browser Icon
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

JavaScript Promises Icon
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

Browser Detect Script Icon
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.
 

3 JavaScript ORMs You Might Not Know

3 JavaScript ORMs You Might Not Know Icon
When I wrote my first JavaScript lines, I never thought it would go beyond browser scripting and making interactive websites. I was wrong since JavaScript can be used literally everywhere: With an increased complexity of the application you’re developing, you would need something to help you deal with all the data you’re storing in the database, whether in a DB server (like PostgreSQL), in the embedded SQLite of mobile devices, or in the browser. Here comes the need for ORMs.
 

How Does JavaScript Works

How Does JavaScript Works Icon
In this tutorial I am going to share one of the most inspired video on How Does JavaScript Works. Philip Roberts speech on How Does JavaScript Works in JsConf 2014 gives us really nice insights on how JavaScript really works inside the browser and JavaScript runtime environment.
 

JavaScript Fundamentals: JSON Explained

JavaScript Fundamentals: JSON Explained Icon
JSON (JavaScript Object Notation) is a lightweight method of storing and sharing information: between the browser and a server, within JavaScript itself, and between programming languages. If you’ve read my previous articles on arrays, nested arrays and objects, you’re already halfway to understanding JSON. Unlike other syntax-heavy formats such as XML, JSON is already (mostly) JavaScript: there’s very little work for your script to parse through, interpret, or translate JSON.
 

JavaScript Browser Detection

JavaScript Browser Detection Icon
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

Resources for JavaScript and DOM Compatibility Tables Icon
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 environment

Browser environment Icon
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...