How I added a button

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.


Posted

in

by

Tags:

Comments

One response to “How I added a button”

  1. Ace_Carpenter Avatar

    How about this one mrwilmoth if that is who you really are.

Leave a Reply

Your email address will not be published. Required fields are marked *