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.