Hi all,
I have done the Mouse Click Button assignment without using HTML.
<script>
let btn = document.createElement("button");
btn.innerHTML = "Click here to win new Iphone 12 pro";
btn.addEventListener("click", function () {
alert("Oh man, That was just a joke.");
});
document.body.appendChild(btn);
</script>
What do you think about such a solution for it?
Best wishes,
Kacper Pajak