We help IT Professionals succeed at work.

Show hour-glass

marcelgr090398
on
Can I use javascript to control what my mouse cursor looks like. After the user presses a button, the operation performed will take a long time, so I want to show the hour-glass.
Comment
Watch Question

yes you can
on the onclick event of the button
wite this script
window.document.body.style.cursor='wait'
this will change the mouse pointer to an hourglass
after whatever process you do
change it back with
window.document.body.style.cursor=''

Author

Commented:
Just what i was looking for!!
thanx for accepting the answer
bye and happy coding

Explore More ContentExplore courses, solutions, and other research materials related to this topic.