title: How to show form at start of function which closes at end of function?
body: <p>I have a function which may take some time to execute.</p>
  
  <p>How can I have a small modal form to show at the start of the function which closes when the function finishes?</p>