document.addEventListener("click",firstClick) function firstClick(){ const click = document.createElement("button") click.innerText="click" document.body.appendChild(click) document.removeEventListener("click",button) }