How to set the cursor to wait?

How to set the cursor to wait?

How to set the cursor to wait?

View Answers

November 10, 2010 at 11:23 AM

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>









Related Tutorials/Questions & Answers:
How to set the cursor to wait?
ModuleNotFoundError: No module named 'waity'
Advertisements
How to get system current cursor type
MySQL Cursor
Changing the Cursor in Java
Show different types of Cursor
How to set cookies?
how to set class path
how to set the values in jsp
The cursor in scrollable resultset
how to set background image
How to set NSZombieEnabled iPhone
UINavigationController how to set title
How to set target to videos??
cursor location
cursor by java code
how set data in a dialog
how to set image - EJB
ModuleNotFoundError: No module named 'cursor'
ModuleNotFoundError: No module named 'cursor'
how to set the value of textfield constant
Using while loop to loop through a cursor
how to set folder size in php
how to set time in jsp page
Flex Cursor Manager Example
how to set size of button,textfield.
How to set Marathi font to Label??
How to set placeholder in uitextfield programmatically?
how to set value of dropdown list
how to set value of dropdown list
How to add a columns with a button set to a Jtable built with database result set
Moving Cursor within ResultSet
how to set a image in frame? - Swing AWT
HOW TO DISPLAY 2 SET OF CONTROLS
java code for cursor
How to set CLASSPATH in Java?
How to set heap memory in cassandra on docker
Cursor hiding in jQuery
How set the height of Thumb in Vertical scrollbar..?
How to set pdf background color.
ModuleNotFoundError: No module named 'selenium-move-cursor'
ModuleNotFoundError: No module named 'django-cursor-pagination'
ModuleNotFoundError: No module named 'django-cursor-pagination-dtkav'
how to chech result set is null or not - Java Beginners
how to set fetch size for jdbc odbc driver
how to set the class path variable in tomcat ?
how can i set an object in focus
How to set a variable value using velocity
change cursor on my website - WebSevices
how to set values in object using java and what are the ways?

Ads