How to set the cursor to wait?
We can set the cursor to wait by using following code-
document.body.style.cursor = "wait";
The full code is as-
<body>
<script language="Javascript">
function ChangeCursor() {
document.body.style.cursor = 'wait';
}
function RestoreCursor() {
document.body.style.cursor = 'default';
}
</script>
<input type="button" onclick="ChangeCursor()"
value="Change Cursor to wait" />
<input type="button" onclick="RestoreCursor()"
value="Default" />
</body>