function local_storage_available() {
		try {
			window.localStorage.setItem("test", "test");
			window.localStorage.removeItem("test");
			return true;
		} 
		catch(e) {
			return false;
		}
	}
// Check if local storage is supported.

Check if local storage is supported.
Check if local storage is supported .
function local_storage_available() {
		try {
			window.localStorage.setItem("test", "test");
			window.localStorage.removeItem("test");
			return true;
		} 
		catch(e) {
			return false;
		}
	}
function local_storage_available ( ) { try { window . localStorage . setItem ( "test" , "test" ) ; window . localStorage . removeItem ( "test" ) ; return true ; } catch ( e ) { return false ; } }
Check if local storage is supported.
Check if local storage is supported .