size property

Returns the size of the local or session storage.

Note These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

This property is read-only.

Syntax

JavaScript
nSize = object.size

Property values

Type: number

The size in bytes used by storage.

See also

DiagnosticsStorage