Feature detection detect wheather some new feature of HTML 5 is running on the given browsers or not?
Feature detection can done by two ways:
1. Using modernizr.js
2. Using Simple JavaScript
if(typeof(Storage) !== "undefined") {
Code for localStorage/sessionStorage.
} else {
Sorry No Browser support for Storage }