Getting information about the browser with JavaScript

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:

Related Topics

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


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


Browser Version Control
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.


Say Hello to HTML5 Web Worker
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.


Check if javascript enabled on visitor browser
This lesson will first teach you how to enable JavaScript in Internet Explorer, Firefox, and Opera, then show you how you can write a very simple script to separate website visitors who don't have JavaScript enabled from those who do.


AJAX Tutorial For Beginners
What is AJAX? AJAX stands for Asynchronous JavaScript and XML. AJAX uses a combination of Javascript and XML to allow web pages to be updated with new data from the server. It consists of HTML, JavaScript, DHTML, and DOM. The traditional way of processing data between client's browser and a server was to submit a HTML form and send data to the server, the server processed the data and sent a response back to the browser.


Functions
Sometimes instead of just adding your javascript to the page and having the browser perform the tasks as soon as the script is read, you might want your javascript to be performed only upon the detection of a certain event. A function is a block of code which can be called from any point in a script after it has been declared. It is basically a compartmentalized JavaScript designed to accomplish a single task.


Starting a JavaScript
How do you tell the browser that a script is starting? Moreover, how does he know what kind of script is starting? What if the browser doesn't support JavaScript?.


Detected Internet Browser
A useful but often overrated JavaScript function is the browser detect. Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari.


Tutorial: Introduction to JavaScript
JavaScript is an easy-to-learn programming language which can be built into Web pages, so that it executes from within the browser rather than on the web server. Intranets especially can leverage the power of JavaScript to create "smart" Web pages which can process data and interact with the user. In this introduction we concisely look at the main programming points of the JavaScript language.


Statusbar Message
This is a quick, and quite simple tutorial. Now its not html, it uses Javascript. What it does is lets you customize what it says in the status bar usually at the bottom left of your browser. Right now in your browser it should say 'Infinite Designs.org ....'. Here's how to make it do that.


JavaScript Operations on Variables
A variable is an amount of memory space reserved to store a piece of information of your code. To use such a memory space, you must first let the browser know that you would need it. For the browser to reserve such a memory space for you, and to use it eventually, you must give it a name. The memory space that is reserved will be used to receive some values from your application and to make such values available when your code needs them. The content of this reserved memory space can change or vary regularly.


7 lines javascript library for calling asynchronous functions
While we are talking about JavaScript in the browser, most of the operations are asynchronous. We are dealing with callbacks all the time and sometimes we end up with awesome callback hell. Let's say that we have two functions and we want to call them one after each other. They both operate with same variable. The first one sets its value and the second one uses it.


Controlling Window
Controlling Windows with JavaScript In this tutorial we will be learning how to manipulate Browser Windows using JavaScript.


Using the navigator object to detect client's browser
In this tutorial we'll probe the navigator object of JavaScript, and show how to use it to perform browser detection, whether the subject is Firefox, Internet Explorer 6, or even Opera 8.


Web Pages for Everyone
One of the most difficult tasks a Web Designer faces is using new technologies or browser specific effects without alienating people with other browsers. How to use JavaScript and meta tags to make browser specific effects available to everyone.


How to create CSS3 and Javascript Photo Gallery for All Browsers
In this tutorial we will learn how to create a simple HTML Photo Gallery using CSS and Javascript, valid and compatible with all browser including Internet Explorer 6,7 and 8.


Detecting Browser Types
Today, we'll learn the basics of detecting a visitor's browser in JavaScript and learn how it can help us build better websites.