How to set the cursor to wait?

Ads
 

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>

Ads









Related Tutorials/Questions & Answers:
How to set the cursor to wait?
How to get system current cursor type
Advertisements
Changing the Cursor in Java
How to set cookies?
how to set class path
MySQL Cursor
Show different types of Cursor
how to set the values in jsp
how to set background image
How to set NSZombieEnabled iPhone
UINavigationController how to set title
How to set target to videos??
The cursor in scrollable resultset
how set data in a dialog
how to set image - EJB
how to set the value of textfield constant
how to set folder size in php
how to set size of button,textfield.
how to set time in jsp page
How to set Marathi font to Label??
cursor location
cursor by java code
Flex Cursor Manager Example
How to set placeholder in uitextfield programmatically?
how to set value of dropdown list
how to set value of dropdown list
how to set a image in frame? - Swing AWT
Using while loop to loop through a cursor
HOW TO DISPLAY 2 SET OF CONTROLS
Moving Cursor within ResultSet
How to add a columns with a button set to a Jtable built with database result set

Ads