Like us on Facebook and stand a chance to win pen drives!

How to check HTML5 Web Storage Support in JavaScript?

HTML5 Data Storage
HTML5 Data Storage



function supports_html5_storage() {
                try {
                    return 'sessionStorage' in window && window['sessionStorage'] !== null;
                } catch (e) {
                    return false;
                }
            }
            alert(supports_html5_storage());


0 comments:

Copyright © 2012 The Code Junction.