setItem( )


Stores an item in local, session, or memory storage.

Note: You can store up to 50kb of data in local and session storage and up to 1mb in memory storage.

Method Declaration
Copy
Method Parameters
keystringRequired

The key of item to set.


valuestringRequired

The value of the item to set.

Was this helpful?
Yes
No