[snip] What I don't get about the question is, is the document.ready() shouldn't fire, until the page has completely loaded, and if the PHP script is still running, the "document" shouldn't be "ready" yet, should it? [/snip] The document ready function fires once the DOM is loaded - which might not be the entire page (images could still be loading, etc.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php