const addField = () => {
let nr = document.createElement('tr');
tb.appendChild(nr);
let ntd = document.createElement('td');
nr.appendChild(ntd);
let w1 = ntd.offsetWidth - 12;
let h1 = ntd.offsetHeight;
let inp1 = document.createElement('textarea');
inp1.setAttribute('rows','1');
inp1.style .resize = 'none';
inp1.style .outline = 'none';
//t1.focus();
inp1.style .width = w1 + 'px';
//
inp1.style .height = h1 + 'px';
ntd.appendChild(inp1);
let ntd2 = document.createElement('td');
nr.appendChild(ntd2);
let ntd3 = document.createElement('td');
nr.appendChild(ntd3);
}
but1.addEventListener('click', addField)
Но ничего не изменилось