refresh technology has experienced several stages:
1, adding a key in the HTML file header to make the page Jump to the specified page (including itself) after the set time;
lets a page go over a certain time, self Move to another page or site, such as:
[code].lt; Meta HTTP-EQUIV=.quot; refresh.quot; content=.quot; 6; url=http://www.jnwjz.com.quot;.Gt; [/code]
content; the unit is second, and the url= behind is the network address you want to turn, if it is in the same directory as your current web page, it can be straight. Write the file name, such as:
[code].lt; Meta HTTP-EQUIV=.quot; refresh.quot; content=.quot; 6; url=index.html.quot;.Gt; [/code]
page refresh once every other time, 10 seconds refresh once, the code is written:
[code].lt; meta; Br />
two, use the framework, and refresh the frame content regularly in the JS script.
the above two ways will reload the page, that is, refresh, it doesn't feel good to people. So no refresh technology appeared.
[code].lt; script language=javascript.gt;
function togopage (secs, gotourl) {
showmessage.innerHTML=secs; / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / if not yet set. L.Quot; ').Quot; 1000);
}
else{/ / / / / / / to the specified page
location.href=gotourl;
}
}
.lt;
in the page, call the JavaScript function:
.lt; span id=.quot; showmessage.quot;.Gt; 5.lt; /span.gt; /span.gt; automatically jump to the default page
.lt; The example is set to 5 seconds, the second is the jump page, and the above is index.html file.
three is an adaptation to second ways.
sets one length in a number of frameworks to 0 to make it invisible, and then refreshes the hidden frame content regularly through a script, and then "writes" the frame content to a browable framework. Most of the early chat rooms were used in this technology.
the real realization of no refresh technology or the following two technologies, they can even achieve local refreshment:
four, xmlHttp technology, can access ASP pages, ASPX pages, WebService, etc. through xmlHttp.
five, WebService, using WebService.htc components to access Web services.
[code]var OBJ;
function init (obj, Op, ID)
{