The response will probably vary even from one browser to the next. What you are doing is risky. You should use a client-pull meta-refresh solution to indicate progress, and even that isn't a universal solution.
An example of "search in progress" strategies may be found in one of my older columns.
-- Randal L. Schwartz, Perl hacker