<!DOCTYPE html><html><head><script>count = 0window.onload = function(e) { textfield = document.getElementById("text") for(let i = 0; i < 100; i++) { textfield.innerHTML += '<button style="width:50px" onclick="doin('+1+')">' + 1 + "</button>" }}function doin(i) { alert(i)}function doit() { count += 1 // count = count + 1 textfield = document.getElementById("text") textfield.innerHTML = count if (count == 1) { textfield.innerHTML = "hf" }}</script><title>Название сайта</title></head><body bgcolor="#ffffff"><button id="clicker" onclick="doit()">Кнопка А</button><p id="text">Кнопки ещё не нажимались</p></body></html>