I want to change the hourglass cursor in an asp.net application so that my users know that the process is running. I was looking for an answer and was recommended to use javascript as follows.
1) Add this javascript
function hourglass() { document.body.style.cursor = "wait"; }
2), then in my code in the page load event:
btnImport.Attributes.Add("onclick", "javascript: hourglass();");
When btnImport is a button, click the button
However, this does not work. But if I add a warning about the hourglass function. it works. Is there any way to make this work without warning.
Thanks in advance.
Bob Avalon
source share