When you enter your E-mail box, you will find that your e-mail box refresh every several minutes. When you log in your blog, the message box will clue on every several seconds. All these effect are achieved by the refresh automatically. The web page refurbishing automatically can save many troubles for us. For example, when the web page can refresh automatically, you don’t worry that you can’t accept the latest message in the blog or the E-mail box. It is so common that we also need to master the ways to achieve this special effect. Don’t worry. It is so easy. we even can achieve this special effect by two different ways. Follow me now. Just need some steps.
|
First, open a web page you have finished in the past.
Second, select the [insert] – [HTML] – [head tags] – [refresh] command. There will be a dialog box appearing.
Third, in the dialog box, click the browse button, at the right of the go to URL textbox. There will be a select file dialog box appearing. Then select the same new web page. Set the delay as ten seconds.
|
Fourth, click the OK button. Save the document. Press F12 to preview its effect in Internet Explorer.
The effect can’t be showed in the static image. You can try it by yourself. This is an easy way to achieve the effect the refresh the web page automatically.
But there is the second way to achieve it. We can use the HTML codes to achieve this effect. You can put the following blue text codes into the section between <head> and </head>.
- <script Language="JavaScript">
- <!--
- var today = new Date();
- document.title=today.toLocaleString();
- var timer=5;
- function beginrefresh()
- {
- if (timer==0)
- window.location.reload();
- else
- {
- window.status= timer+” seconds later refresh the page ”
- timer-=1;
- setTimeout("beginrefresh()",1000);
- }
- }
- beginrefresh();
- //-->
- </script>
Then the web page will refresh automatically every five minutes.
So you can use the head tags and HRML codes to refresh the web page automatically. You can choose your favorite one.

