I have a bit of an odd problem updating the cursor while commencing a slightly lengthy process in JavaScript.

The cursor itself doesn't want to change in IE but it will in Firefox.

The link to kick the process off is this:

Code:
<a href="#" onclick="write_to_excel()">Export this roster to Excel</a>
Here's my code:

Code:
<script type="text/javascript">
function write_to_excel()
{ 
    document.body.style.cursor="wait";
    var div = document.getElementById('rostertable');
    div.contentEditable = 'true';
    controlRange = document.body.createControlRange();
    controlRange.addElement(div);
    controlRange.execCommand('Copy');
    div.contentEditable = 'false';

    var t=window.setTimeout("PasteToExcel()",10000); 
    document.body.style.cursor="default";
} 

function PasteToExcel()
{
    try
    {
        var ExcelApp = new ActiveXObject("Excel.Application");
        var ExcelSheet = new ActiveXObject("Excel.Sheet");
        ExcelSheet.Application.visible=true;
        ExcelSheet.ActiveSheet.paste;
    }
    catch (e)
    {
        alert("An exception occurred while working with EXCEL. Error name: " + e.name + ". Error message: " + e.message);
    }
}
</script>