A
A
Alexander Kusak2016-09-27 18:43:41
Google Workspace
Alexander Kusak, 2016-09-27 18:43:41

How to save the data that was entered in the extension for Chrome?

We need material where you can learn how to save the data that the user can enter in the extension, namely on the options.html extension page.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2016-09-27
@McFree

var test = document.getElementById("test").value;
// сохраняем введенное значение
localStorage["test"] = test;

https://developer.mozilla.org/en/docs/Web/API/Web_...

A
Alexey Skobkin, 2016-09-28
@skobkin

chrome.storage.local - locally.
chrome.storage.sync - with synchronization via Google account.
https://developer.chrome.com/extensions/storage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question