0
document.getElementById('add-note').addEventListener('click', function() { var note = prompt('Enter your note:'); if (note) { var li = document.createElement('li'); li.textContent = note; document.getElementById('notes-list').appendChild(li); } }); 

I am trying to make a note section for my webpage and i want to export the notes as a text or some kind of file and also load it back. This is offline.

2
  • You could create an array from your data and export it as a CSV. See the duplicate for more details on that. If this does not meet your needs, then please edit the question to show much more context around the expected behaviour, and also the code you wrote to reach that goal. Commented Oct 12, 2023 at 14:54
  • i am a beginner so i don't know much about js Commented Oct 12, 2023 at 15:03

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.