i have a function what does the following
function test() {
document.getElementById("main").innerHTML="show wait";
// do stuff
document.getElementById("main").innerHTML="show finished";
}
In FF the div will show "show wait", do the other stuff for 4 seconds and then show "show finished"
In IE it will only show "show finished". If i put an alert() after or before the "do stuff" it will show "show wait".
What can I do to solve it, i know i can split the function, any other solutions?