I added a button, and spent way too long on w3schools trying to make it function when all i needed was an “onclick” command.
as you can see, when clicked, the button runs my function “dontberacist”
Here is the code to use a button and assign a function to be used.
<button onclick="insertfunctionnamehere()" class="insertclasshere"> Insert Text Here </button>
I also added a small bit of information and will change the button to redirect to something useful later but that will be a surprise. Here is some of the info I added.
Leave a Reply