I want to create a button that gets disabled after one click/is just clickable one time... I couldnt find anything about it.
Add a click event listener to the button which disables it.
document.querySelector('button').addEventListener('click', function(){
this.disabled = true;
})
<button>Button</button>