<!DOCTYPE html>function myfunction(txt){alert(txt);}type="button"onclick="myfunction('Good Morning!')"value="In the Morning"type="button"onclick="myfunction('Good Evening!')"value="In the Evening"When you click on one of the buttons, a function will be called. The function will alertthe argument that is passed to it.