title: HTML Javascript Modal Popup Window with Auto Close
body: <p>The main idea is to replicate what we see on the Banks or American Express sites, where a MODAL Popup appears to they tell us that the session "is going" to expire.  </p>
  
  <p>To this, I wanted to add an "Auto-Close" Popup event that will happen after XX seconds and then I will want to call a button event Onclick to "auto save" the current work, before redirecting the user to the Logout page.</p>
  
  <p>So mainly I would like to know what's the best way to do the following:  </p>
  
  <p>1) Display a MODAL Message after let's say 1 minute (for testing purposes). This could be a DIV appearing on top of the current page, or a Dialog Message Box both MODAL.</p>
  
  <p>2) Display a message and also a Reverse Timer, something like "Please save your work before the session expires"</p>
  
  <p>3) Auto Close (or hide) that Message dialog after XX seconds </p>
  
  <p>4) Call a button onclick event.</p>
  
  <p>BackEnd is ASP.NET using C#</p>