projet-clicodrome/js/intro.js
2024-11-21 10:57:23 +01:00

13 lines
No EOL
245 B
JavaScript

let firstclick = 0
if (firstclick==0){
document.addEventListener("click",button)
firstclick = 1
}
function button(){
const click = document.createElement("button")
click.innerText="click"
document.body.appendChild(click)
}