title: Modify Javascript Submit() Function
body: <p>Attempting to modify an existing program.</p>
  
  <p>When a button is clicked, it calls an <code>OnClick</code> method that calls something like:</p>
  
  <pre><code>document.forms.submit()
  </code></pre>
  
  <p>I'd like to just use the same code but add in:</p>
  
  <pre><code>document.getElementById("overlay").style.display = 'block';
  </code></pre>
  
  <p>That will essentially unhide a page overlay with a loading overlay.</p>
  
  <p>Is there some place where this could be done to just add this to the processing?</p>