锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品久久久久av福利动漫,91精品久久久久久综合五月天,小明精品国产一区二区三区http://www.aygfsteel.com/ftqiuqiu/category/32269.html鐚拰鐞冪殑鏁呬簨zh-cnTue, 31 Mar 2009 19:34:45 GMTTue, 31 Mar 2009 19:34:45 GMT60JavaScript涓殑document.all鍜宒ocument.getElementByIdhttp://www.aygfsteel.com/ftqiuqiu/articles/263155.html鐞冪悆鐞冪悆Tue, 31 Mar 2009 08:17:00 GMThttp://www.aygfsteel.com/ftqiuqiu/articles/263155.htmlhttp://www.aygfsteel.com/ftqiuqiu/comments/263155.htmlhttp://www.aygfsteel.com/ftqiuqiu/articles/263155.html#Feedback0http://www.aygfsteel.com/ftqiuqiu/comments/commentRss/263155.htmlhttp://www.aygfsteel.com/ftqiuqiu/services/trackbacks/263155.html document.all(name/id)榪斿洖鎷ユ湁鍏卞悓name/id灞炴х殑瀵硅薄闆嗗悎
document.getElementById(name/id)榪斿洖鍏鋒湁鎸囧畾name/id鐨勫崟涓璞?

鍏煎鎬т笂鏉ヨ
document.all涓篒E鎵涓撴湁鐨?涓鑸敤鏉ュ垽鏂槸鍚︽槸IE嫻忚鍣?灝介噺涓嶈浣跨敤
document.getElenmntById涓篔S鏍囧噯鍑芥暟

document.getElementById 鏈夋椂浼氭姄name鏀捐繃浜唅d 錛屾嵁璇存槸IE鐨勪竴涓狟UG錛?br />
http://community.csdn.net/Expert/topic/4223/4223888.xml?temp=.1947443

欏甸潰涓湁
    <input type="hidden" id="hello8" name="category_id" value="2" />

         <select id="category_id"   onchange="al();">

 涓涓槸name="category_id" 涓涓槸id="category_id"

鐢╠ocument.getElementById鍙栫浜屼釜錛屽彲鏄紝鍙栧埌鐨勫嵈鏄涓涓猲ame=category_id



鍦↖E涓璯etElementById绔熺劧涓嶆槸鍏堟姄id鑰屾槸鍏堟壘name鐩稿悓鐨勭墿浠?..
 
鍏╁媐orm,姣忓媐orm鏈夊叐鍊媡extbox,鍏╁媐orm涓殑textbox鏄浉鍚岀殑name,浣唅d閮戒笉鍚?..
閫欐ǎ鍦‵irefox鏄矑鍟忛鐨?..浣嗗湪IE鍗誨彧鎶撳緱鍒扮涓鍊嬪嚭鐝劇殑name璩囨枡

涓嬮潰榪欐浠g爜鍙互楠岃瘉榪欎釜緇撴灉



<HTML>
<HEAD>
<TITLE> getElementById </TITLE>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function chkacc(){
alert(document.getElementById(
"tbxuid1").value);
alert(document.getElementById(
"tbxpwd1").value);
alert(document.getElementById(
"tbxuid").value);
alert(document.getElementById(
"tbxpwd").value);
}

//-->
</SCRIPT>
<BODY>
<FORM METHOD=POST ACTION="" name="frm1">
<INPUT TYPE="text" NAME="tbxuid" id="tbxuid1">
<INPUT TYPE="text" NAME="tbxpwd" id="tbxpwd1">
</FORM>
<FORM METHOD=POST ACTION="" name="frm2">
<INPUT TYPE="text" NAME="tbxuid" id="tbxuid">
<INPUT TYPE="text" NAME="tbxpwd" id="tbxpwd">
<INPUT TYPE="button" value="妾㈡煡" name="btnchk" onclick="chkacc();">
</FORM>
</BODY>
</HTML


鐞冪悆 2009-03-31 16:17 鍙戣〃璇勮
]]>
JS鍒鋒柊妗嗘灦瀛愰〉闈㈢殑涓冪鏂規硶http://www.aygfsteel.com/ftqiuqiu/articles/205634.html鐞冪悆鐞冪悆Tue, 03 Jun 2008 11:14:00 GMThttp://www.aygfsteel.com/ftqiuqiu/articles/205634.htmlhttp://www.aygfsteel.com/ftqiuqiu/comments/205634.htmlhttp://www.aygfsteel.com/ftqiuqiu/articles/205634.html#Feedback0http://www.aygfsteel.com/ftqiuqiu/comments/commentRss/205634.htmlhttp://www.aygfsteel.com/ftqiuqiu/services/trackbacks/205634.html欏圭洰涓敤鍒板叧浜庢鏋墮〉闈㈠埛鏂扮殑鏂規硶錛屽湪緗戜笂鎼滅儲浠ュ悗鍙戠幇鏈夎澶氫笉閿欑殑浠g爜錛屼絾涓嶆槸寰堥綈鍏ㄣ備簬鏄紝鎴戠儲鎬т粠緗戠粶涓婃悳闆嗕互鍚庣粡榪囩簿蹇冪紪鎺掞紝鏁寸悊浜嗕竴涓嬨俕 - ^ 甯屾湜澶у澶氬鎸囨暀錛?/strong>

涓嬮潰浠ヤ笁涓〉闈㈠垎鍒懡鍚嶄負framedemo.html,left.html,right.html涓轟緥鏉ュ叿浣撹鏄庡浣曞仛銆?/p>

鍏朵腑framedemo.html鐢卞乏鍙充袱涓〉闈㈢粍鎴愶紝浠g爜濡備笅錛?/p>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> frameDemo </TITLE>
</HEAD>
<frameset cols="200,*">
<frame name=top src="left.html">
<frame name=button src="right.html">
</frameset>
</HTML>

鐜板湪鍋囪left.html鍗充笂闈㈢殑欏甸潰鏈変竴涓猙utton鏉ュ疄鐜板涓嬮潰欏甸潰鐨勫埛鏂幫紝鍙互鐢ㄤ互涓嬩竷縐嶈鍙ワ紝鍝釜濂界敤鑷繁鐪嬬潃鍔炰簡銆?/p>

璇彞1. window.parent.frames[1].location.reload();

璇彞2. window.parent.frames.bottom.location.reload();

璇彞3. window.parent.frames["bottom"].location.reload();

璇彞4. window.parent.frames.item(1).location.reload();

璇彞5. window.parent.frames.item('bottom').location.reload();

璇彞6. window.parent.bottom.location.reload();

璇彞7. window.parent['bottom'].location.reload();

瑙i噴涓涓嬶細

1.window鎸囦唬鐨勬槸褰撳墠欏甸潰錛屼緥濡傚浜庢渚嬪畠鎸囩殑鏄痶op.html欏甸潰銆?/p>

2.parent鎸囩殑鏄綋鍓嶉〉闈㈢殑鐖墮〉闈紝涔熷氨鏄寘鍚畠鐨勬鏋墮〉闈€備緥濡傚浜庢渚嬪畠鎸囩殑鏄痜ramedemo.html銆?/p>

3.frames鏄痺indow瀵硅薄錛屾槸涓涓暟緇勩備唬琛ㄧ潃璇ユ鏋跺唴鎵鏈夊瓙欏甸潰銆?/p>

4.item鏄柟娉曘傝繑鍥炴暟緇勯噷闈㈢殑鍏冪礌銆?/p>

5.濡傛灉瀛愰〉闈篃鏄釜妗嗘灦欏甸潰錛岄噷闈㈣繕鏄叾瀹冪殑瀛愰〉闈紝閭d箞涓婇潰鐨勬湁浜涙柟娉曞彲鑳戒笉琛屻?br /> top.html婧愪唬鐮侊紱(欏甸潰涓婃湁涓冧釜鎸夐挳錛屽姛鑳介兘鏄埛鏂頒笅闈㈢殑妗嗘灦欏甸潰)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
</HEAD>
<BODY>
<input type=button value="鍒鋒柊1" onclick="window.parent.frames[1].location.reload()"><br>
<input type=button value="鍒鋒柊2" onclick="window.parent.frames.bottom.location.reload()"><br>
<input type=button value="鍒鋒柊3" onclick="window.parent.frames['bottom'].location.reload()"><br>
<input type=button value="鍒鋒柊4" onclick="window.parent.frames.item(1).location.reload()"><br>
<input type=button value="鍒鋒柊5" onclick="window.parent.frames.item('bottom').location.reload()"><br>
<input type=button value="鍒鋒柊6" onclick="window.parent.bottom.location.reload()"><br>
<input type=button value="鍒鋒柊7" onclick="window.parent['bottom'].location.reload()"><br>
</BODY>
</HTML>

涓嬮潰鏄痳ight.html欏甸潰婧愪唬鐮侊紝涓轟簡璇佹槑涓嬫柟欏甸潰鐨勭‘琚埛鏂頒簡錛屽湪瑁呰澆瀹岄〉闈㈠脊鍑轟竴涓璇濇銆?/p>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
</HEAD>
<BODY onload="alert('鎴戣鍔犺澆浜嗭紒')">
<h1>This is the content in button.html.</h1>
</BODY>
</HTML>

緇忔垜嫻嬭瘯錛屽彧鑳? 鍜? 鏄劇ず鏁堟灉錛屽埆鐨勫ソ鍍忎笉瀵瑰摕
=============錛濓紳錛濓紳錛濓紳錛濓紳錛濓紳錛濓紳錛濓紳錛?/p>

闄勶細
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.欏甸潰鑷姩鍒鋒柊錛氭妸濡備笅浠g爜鍔犲叆<head>鍖哄煙涓?br /> <meta http-equiv="refresh" content="20">
鍏朵腑20鎸囨瘡闅?0縐掑埛鏂頒竴嬈¢〉闈?

2.欏甸潰鑷姩璺寵漿錛氭妸濡備笅浠g爜鍔犲叆<head>鍖哄煙涓?br /> <meta http-equiv="refresh" content="20;url=http://www.wyxg.com">
鍏朵腑20鎸囬殧20縐掑悗璺寵漿鍒癶ttp://www.wyxg.com欏甸潰

3.欏甸潰鑷姩鍒鋒柊js鐗?br /> <script language="JavaScript">
function myrefresh()
{
       window.location.reload();
}
setTimeout('myrefresh()',1000); //鎸囧畾1縐掑埛鏂頒竴嬈?br /> </script>

ASP.NET濡備綍杈撳嚭鍒鋒柊鐖剁獥鍙h剼鏈鍙?br /> 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鍒鋒柊妗嗘灦鐨勮剼鏈鍙?br />

//濡備綍鍒鋒柊鍖呭惈璇ユ鏋剁殑欏甸潰鐢?nbsp;  
<script language=JavaScript>
   parent.location.reload();
</script>   

//瀛愮獥鍙e埛鏂扮埗紿楀彛
<script language=JavaScript>
    self.opener.location.reload();
</script>

(銆鎴栥<a href="javascript:opener.location.reload()">鍒鋒柊</a>   )

//濡備綍鍒鋒柊鍙︿竴涓鏋剁殑欏甸潰鐢?nbsp;  
<script language=JavaScript>
   parent.鍙︿竴FrameID.location.reload();
</script>

濡傛灉鎯沖叧闂獥鍙f椂鍒鋒柊鎴栬呮兂寮紿楁椂鍒鋒柊鐨勮瘽錛屽湪<body>涓皟鐢ㄤ互涓嬭鍙ュ嵆鍙?/span>

<body onload="opener.location.reload()">
寮紿楁椂鍒鋒柊
<body onUnload="opener.location.reload()">
鍏抽棴鏃跺埛鏂?/font>

<script language="javascript">
window.opener.document.location.reload()
</script>



鐞冪悆 2008-06-03 19:14 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 临桂县| 仙游县| 即墨市| 湖口县| 德清县| 江北区| 盖州市| 谷城县| 石阡县| 太谷县| 无锡市| 克东县| 长岭县| 绥棱县| 乌拉特后旗| 星座| 南宫市| 邯郸市| 禄丰县| 凤冈县| 宁海县| 沁水县| 珠海市| 五大连池市| 通州市| 大邑县| 扎兰屯市| 新津县| 阿克| 大安市| 沾益县| 科技| 什邡市| 洛扎县| 乌恰县| 静乐县| 新绛县| 关岭| 孟连| 大化| 南华县|