M
M
Michael R.2017-02-08 12:22:19
JavaScript
Michael R., 2017-02-08 12:22:19

How to properly store information in my case?

Hello! Wrote a script to work in Chrome (tampermonkey extension). The script checks if there is new news on the page of the desired site (it is loaded via Ajax), then it immediately informs me about it.
There was a task, to write the numbers of new news in some file, so that later you can always look at it (right now I'm writing this in consol.log()).
Now a couple of questions:
1. For example, in php I understand how to write something to a file, but in js how to write code (and if not saved to a file, then where)?
2. And if our script is in the browser, then how to proceed from there?

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Shcherbokov, 2017-02-10
@drogwur

IndexedDB
localStorage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question