Greyed-out “waiting” page in Javascript? [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Div as modal - javascript 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. I haven't been able to find anything that does