Setting local storage value through Javascript

how do I set the value of a local storage to a custom value, using JavaScript?

also how do I set the value of a local storage to the text of a label, using JavaScript?

Thanks
1 person has
this question
+1
This topic is no longer open for comments or replies.