The onclick attribute can call functions from an included script when a visitor clicks on the button.
onclick
Set onclick to "sayHello()".
"sayHello()"
Make sure to add the function call sayHello().
sayHello()