Changing the cursor in asp.net
<p>I want to change the cursor to an hourglass in my asp.net application to let my users know that the process is running. I searched for an answer and was advised to use javascript as follows. </p>

<p>1) Add this javascript</p>

<pre><code>function hourglass() {

    document.body.style.cursor = "wait";
}
</code></pre>

<p>2) then in my code in the page load event: </p>

<pre><code>btnImport.Attributes.Add("onclick", "javascript: hourglass();");
</code></pre>

<p>When btnImport is the button they click on</p>

<p>However this does not work. But if I add an alert to the hourglass function. it does work. Is there some way to get this to work without the alert.</p>

<p>Thanks in advance.</p>

<p>Bob Avallone</p>
