How to set the cursor to wait in JavaScript?
The cursor can set to wait in JavaScript by using the property ‘cursor’ property.
The following example illustrates the usage. window.document.body.style.cursor = "wait"; // sets the cursor shape to hour-glass.
How to set the cursor to wait in JavaScript?
<html>
<div style="width: 100px; height: 100px; background: yellow; cursor: wait">
A mouse over this yellow patch will show you the wait cursor.
</div>
</html>