1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00
3 Storage.Key
boxgaming edited this page 2023-09-27 15:04:43 -05:00

Returns the key from browser storage identified by the key's index.

The total number of keys stored in browser storage can be retrieved with the Storage.Length function.

Syntax

key$ = Storage.Key (index% [, storageType])

Parameters

  • The index% parameter is the 0-based index of the storage key.
  • The optional storageType parameter indicates the type of storage. Default is LOCAL if not specified.
    • LOCAL - Local browser storage. Values stored at this level will be persisted in the browser's local storage between sessions.
    • SESSION - Session browser storage. Values stored at this level will only be persisted for the duration of the page session.

See Also

Window.localStorage
Window.sessionStorage
Storage.Set Storage.Clear Storage.Key Storage.Length Storage.Remove