There are numerous ways to invoke a function. The example here demonstrates using the 'onclick' attribute of a button.