DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Derek has posted 2 posts at DZone. View Full User Profile

Set Cursor To Hourglass

02.07.2007
| 44892 views |
  • submit to reddit
        // Sets Mouse Cursor to Hourglass using Javascript

//Set cursor to hourglass
document.body.style.cursor = "wait";
//Turn hourglass off
document.body.style.cursor = "default";