Yes, but with a big proviso. Firstly you can set the cursor using style:
Code:
document.body.style.cursor = "wait"; //Hourglass
This can be on virtually any element. The proviso is that it won't change unless the script finishes so you probably need to use setTimeout, let's say your user clicks a button that needs to call updateDatabase. Set your onclick to call an intermediary function called longProcess:
Code:
function setCursor(Cursor)
{
document.body.style.cursor = Cursor;
}
function longProcess()
{
setTimeout("setCursor'wait')", 100);
setTimeout(updateDatabase, 500);
}
You can set the cursor back at the end of updateDatabase.
See:
http://msdn.microsoft.com/library/de...de02262001.asp
--
Joe