Tutorials » JavaScript

Detect browsers with jQuery - Cover

Detect browsers with jQuery

Published by David on 09. April 2010

If you want to detect browsers with jQuery it is really easy to manage with it.Although it isn't relly accessible for users with disabled JavaScript. Note: If I have forgotten some browsers let me know it! Note²: Instead of browser user agent sniffing a good alternative is to use feature detection e.g. via Modernizr.

View whole tutorial »
Battery API - Low charge notification - Cover

Battery API - Low charge notification

Published by David on 20. March 2012

The web is pushing forward and with it its new possibilities. One of the newest achievements is the JavaScript Battery API which is already included (prefixed) in WebKit (Chrome, Safari) and Gecko (Firefox). This API provides information about the current charge level and allows you - via events - to notify the user e.g. about a low charge or allows the website to disable CPU intense operations. Some of you may ask yourself why do we need that? An important use case would be a business-critical (financial) app where you could notify the user about the low Battery charge and...

View whole tutorial »