Counting now...<BR>
<script language="JavaScript">
for (i=1; i<=10000; i=i+1)
{
}
document.bgColor="yellow"
alert("done")
</SCRIPT>
...and we're done
Gives you this:
Counting now...
...and we're done
The count is taken off the page by taking away the document.write statement. You need to keep the curly brackets, even though they're empty. The document.bgColor and alert statement complete the look.