Create an html button in an html snippet that will invoke a function

Create an html button in an html snippet that will invoke a function

On a Page, is there a way to create a button in an html snippet that will invoke a function?