How to set the cursor to wait in JavaScript?

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>
What is decodeURI(), encodeURI() in JavaScript?
What is decodeURI(), encodeURI() in JavaScript? - ...
Methods GET vs. POST in HTML forms
Encoding form data into URL is needed by the GET method. The form data is to be appeared within the message body...
What does the EnableViewStateMac setting in an aspx page do?
What does the EnableViewStateMac setting in an aspx page do? - ...
Post your comment