Michael_isr,
setAttribute немного не про то
https://developer.mozilla.org/ru/doc...t/setAttribute
var c="Some text", a = "07.09.2016", b = "14:40", newMemberID = 111;
var notesData = {
text: c,
date: a,
time: b
};
notesData.ID = newMemberID;
alert(JSON.stringify(notesData));
localStorage.setItem('notesData', JSON.stringify(notesData));
var retrievedObject = localStorage.getItem('notesData');
console.log('retrievedObject: ', JSON.parse(retrievedObject));