var btnAdd = document.createElement('button'); btnAdd.innerHTML = "Добавить"; btnAdd.onclick = this.addItem;