Quote:
Originally Posted by sbhmf
Although you are correct that the object itself must be entered for the parameter and not a string, I expect that the setInterval function's parameters are already correct, since it works fine when initially loaded.
|
No you are forcing it to eval() the string in the first parameter. What you have will work it is just not as efficient as if you were to pass the parameter correctly.
Quote:
Originally Posted by sbhmf
Seems to me that the script is not executing when the window displays the document from its history's cache,
|
Yes it is but it is running first before the HTML has loaded and therefore crashes because the HTML it is trying to update doesn't exist yet.
MOVE THE SCRIPT TO THE BOTTOM OF THE PAGE AND IT WILL THEN WORK.