Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest eXtaZa222

How can I show a message when the script is loading?

Recommended Posts

Guest eXtaZa222
Hello all,
I want to know how can I write the word "calc..." when the script is loading, and hide it when the script finished to load? I have a PHP script that takes a lot of time untill he writes the result, and I want to write for the user that are waiting "calc...." , and when it shows the result I want to hide that word. How can I do that?

Thanks a lot.

Share this post


Link to post
Share on other sites
something like this might work
[code]
<body onload="document.getElementById('calc').style.display = 'none';">

<div id="calc">Calc....</div>

</body>
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.