javascript refresh page ¼¸ÖÖÒ³Ãæˢеķ½·¨
JavascriptË¢ÐÂÒ³ÃæµÄ¼¸ÖÖ·½·¨£º
1 history.go(0)
2 location.reload()
3 location=location
4 location.assign(location)
5 document.execCommand('Refresh')
6 window.navigate(location)
7 location.replace(location)
8 document.URL=location.href
×Ô¶¯Ë¢ÐÂÒ³ÃæµÄ·½·¨:
1.Ò³Ãæ×Ô¶¯Ë¢Ð£º°ÑÈçÏ´úÂë¼ÓÈë<head>ÇøÓòÖÐ
<meta http-equiv="refresh" content="20">
ÆäÖÐ20ָÿ¸ô20ÃëË¢ÐÂÒ»´ÎÒ³Ãæ.
2.Ò³Ãæ×Ô¶¯Ìøת£º°ÑÈçÏ´úÂë¼ÓÈë<head>ÇøÓòÖÐ
<meta http-equiv="refresh" content="20;url=http://www.wyxg.com">
ÆäÖÐ20Ö¸¸ô20ÃëºóÌøתµ½http://www.wyxg.com/
Ò³Ãæ
3.Ò³Ãæ×Ô¶¯Ë¢ÐÂjs°æ
<script language="JavaScript">
function myrefresh()
{
window.location.reload();
}
setTimeout('myrefresh()',1000); //Ö¸¶¨1ÃëË¢ÐÂÒ»´Î
</script>
ASP.NETÈçºÎÊä³öˢи¸´°¿Ú½Å±¾Óï¾ä
1. this.response.write("<script>opener.location.reload();</script>");
2. this.response.write("<script>opener.window.location.href = opener.window.location.href;</script>");
3. Response.Write("<script language=javascript>opener.window.navigate(''ÄãҪˢеÄÒ³.asp'');</script>")
JSˢпò¼ÜµÄ½Å±¾Óï¾ä
//ÈçºÎˢаüº¬¸Ã¿ò¼ÜµÄÒ³ÃæÓÃ
<script language=JavaScript>
parent.location.reload();
</script>
//×Ó´°¿Úˢи¸´°¿Ú
<script language=JavaScript>
self.opener.location.reload();
</script>
(¡¡»ò¡¡<a href="javascript:opener.location.reload()">Ë¢ÐÂ</a> )
//ÈçºÎË¢ÐÂÁíÒ»¸ö¿ò¼ÜµÄÒ³ÃæÓÃ
<script language=JavaScript>
parent.otherFrameID.location.reload();
</script>
Èç¹ûÏë¹Ø±Õ´°¿ÚʱˢÐÂ
Ïà¹ØÎĵµ£º
ÖصãÔÚÓÚfunction scroll()£¬function clipShow()¼°ÒÔÏÂforÑ»·¡£
ÎÞ·ì¹ö¶¯ÐÂÎŵÄJavascriptÔ´´úÂ룬·ÅÔÚÕâÀÓÐÐèÒªµÄʱºò¿ÉÄÜÓõÃÉÏ£º
//CSSÑùʽ
<style>
.new_newsT{
padding-top: 10px;
padding-bottom: 8px;
}
.new_newsT .list {
CLEAR: both; MARGIN: 0px 6px 0px 10px
}
......
¶þʮһ¡¢ÉùÒô
1¡¢¿ÉÒÔ²¥·ÅÉùÒôµÄä¯ÀÀÆ÷£¨Audio-enabled Browsers£©
Q£ºÊ²Ã´¿ÉÒÔä¯ÀÀÆ÷¿ÉÒÔÖ´Ðв¥·ÅÉùÒôµÄ½Å±¾£¿
A£ºÈç¹ûÔÚÉùÒô²¥·ÅÃèÊöµÄ¼¼Êõ¿ÉÒÔÔÚMiscrosoft Internet Explorer 4.0¼°Æä¸üа汾Öй¤×÷£¬ÄÇôͬÑù¿ÉÒÔÔÚNetscape Navigator 3.0¼°Æä¸üа汾Öй¤×÷¡£ÒªÔÚInternet ExplorerÖв¥·ÅÉùÒô£¬ÔÚ4.0ÒÔ¼°ºóÀ´°æ±¾Ö ......
´´½¨Ò»¸öÈÕÆÚ¶ÔÏó£º
var objDate=new Date([arguments list]);
²ÎÊýÐÎʽÓÐÒÔÏ£µÖÖ£º
new Date("month dd,yyyy hh:mm:ss");
new Date("month dd,yyyy");
new Date(yyyy,mth,dd,hh,mm,ss);
new Date(yyyy,mth,dd);
new Date(ms); ......
ÍøÒ³ÖÆ×÷Javascript¾µäС¼¼ÇÉ×ܽá
http://www.webjx.com ¸üÐÂÈÕÆÚ£º2007-10-12 01:25 ³ö´¦£ºÍøÒ³½ÌѧÍø ×÷ÕߣºÕ¾³¤ÕûÀí
ÿһÏÊÇJSÖеÄС¼¼ÇÉ£¬µ«Ê®·ÖµÄʵÓã¡
1.document.write(”"); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document->html->(head,body)
4.Ò»¸öä¯ÀÀÆ ......