title: Greyed-out "waiting" page in Javascript?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4502435/div-as-modal-javascript">Div as modal - javascript</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a way to somehow lock a page in Javascript until a function call is complete?  What I have in mind is like a semi-transparent grey cover that prevents any other user actions such as mouse-overs or button clicks until the current request is done processing.  The look-and-feel doesn't matter quite as much as the functionality, though.</p>
  
  <p>I haven't been able to find anything that does this.  Most "solutions" to this problem simply say to wait to load the other HTML elements until you're done with whatever processing you're performing, but in this particular circumstance, all the options are <em>already present</em> on the screen.  I want to be able to prevent the user from performing another action from the page until the current request is complete.</p>