JavaScript
{dialog.object}idbAvailable Method
Syntax
result = {dialog.object}.idbAvailable()
Returns
- resultboolean
Returns true if IndexedDB is supported by the browser. Otherwise, false.
Description
Checks if IndexedDB is supported by the browser.
Discussion
The idbAvailable() method checks if IndexedDB is supported on the browser.
Example
if ({dialog.object}.idbAvailable()) { alert("IndexedDB is supported!"); } else { alert("IndexedDB is not supported."); }
See Also