How to Make a main Menu

I am having trouble getting my main menu to work. I have been able to set up the buttons and canvas and all that but for some reason I cannot figure how to work the button on click function and just lost over what to do.

Click on your button, in the inspector look for an area that says “OnClick”, hit the plus sign, now drag in a gameobject that contains a script with a public method, this method now allows you to do stuff such as launch the game.