8 lines
132 B

<script>
function handleClick() {
alert('no more alerts');
}
</script>
<button on:click|once={handleClick}> Click me </button>