Reputation: 1113
Example
I click on my extension
opens the html page of my extension (popup.html)
I add an element that has the text, the text of the prompt
"abandoned" the extension
Control the listbox and the new first element inserted is not in the listbox
There is my
Upvotes: 0
Views: 415
Reputation: 134
Better than HTML5 localStorage, consider leveraging the chrome.storage API
Upvotes: 1
Reputation: 3073
Imagine you opened a text file, wrote some text in it and didnt save it? What do you think would happen?
You need to save the state of the content somewhere and this can be done using localStorage.
Here is an article which explains all about it:
http://coding.smashingmagazine.com/2010/10/11/local-storage-and-how-to-use-it/
Upvotes: 3