title: use same function for different buttons
body: <p>I have created a button at the bottom of the page which when clicked open a modal.
  Now I have a button in a header. I want that when we click on that header button it should too open the modal. That is how can we use the same function which is used for the button which is at the bottom of the page.</p>