JavascriptË¢ÐÂÒ³Ãæ´óÈ«
·Çģ̬ˢи¸Ò³Ã棺window.opener.location.reload();
ģ̬ˢи¸Ò³Ã棺window.dialogArguments.location.reload();
ÏÈÀ´¿´Ò»¸ö¼òµ¥µÄÀý×Ó£º
ÏÂÃæÒÔÈý¸öÒ³Ãæ·Ö±ðÃüÃûΪframe.html¡¢top.html¡¢bottom.htmlΪÀýÀ´¾ßÌå˵Ã÷ÈçºÎ×ö¡£
frame.html ÓÉÉÏ(top.html)ÏÂ(bottom.html)Á½¸öÒ³Ãæ×é³É£¬´úÂëÈçÏ£º
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> frame </TITLE>
</HEAD>
<frameset rows="50%,50%">
<frame name=top src="top.html">
<frame name=bottom src="bottom.html">
</frameset>
</HTML>
ÏÖÔÚ¼ÙÉètop.html (¼´ÉÏÃæµÄÒ³Ãæ) ÓÐÆ߸öbuttonÀ´ÊµÏÖ¶Ôbottom.html (¼´ÏÂÃæµÄÒ³Ãæ) µÄˢУ¬¿ÉÒÔÓÃÒÔÏÂÆßÖÖÓï¾ä£¬ÄĸöºÃÓÃ×Ô¼º¿´×Å°ìÁË¡£
Óï¾ä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();
top.html Ò³ÃæµÄ´úÂëÈçÏ£º
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> top.html </TITLE>
</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&
Ïà¹ØÎĵµ£º
Ò³ÃæÌá½»Êý¾ÝÒ»°ãÓÐÁ½ÖÖ·½·¨£ºget,post¡£post¾ÍÊÇËùνµÄformÌá½»£¬Ê¹ÓÃÊÓͼ£»getÊÇͨ¹ýurlÌá½»¡£
Get·½·¨Ò»°ãÓúǫ́´úÂ루Èçasp,asp.net£©»ñµÃ²ÎÊý£¬´úÂëºÜ¼òµ¥£ºRequest.QueryString["id"];¼´¿É»ñÈ¡¡£
ÓÐЩʱºòÐèÒªÖ±½ÓÔÚǰ̨»ñÈ¡url²ÎÊý£¬ÒªÓõ½javascript£¬jsûÓÐÖ±½Ó»ñÈ¡url²ÎÊýµÄ·½·¨£¬ÄÇô£¬ÎÒÃÇÈçºÎͨ¹ýjs ......
½ñÌì¿´µ½¡¶AJAX¿ª·¢¼òÂÔ¡·ÖÐËùÓеÄ<A href>¶¼Óõ½ÁËjavascript:void(0)
½ñÌì¿´ÁËÒ»ÏÂÔÀ´Õâ¸ö±í´ïʽµÄ×÷ÓþÍÊÇÈõ±Ç°Õâ¸ö³¬Á´½Ó³ÉΪһ¸öËÀÁ´½Ó£¬¾ÍÊÇʲô¶¼²»×÷¡£
ÒÔÏÂÕª×Ô£º
http://blog.csdn.net/mouyong/archive/2007/01/24/1491761.aspx
±ðÈËЩµÄJavaScript½Å±¾¿ÉÒÔ¿´µ½ÕâÑùµÄ´úÂ룺
<a href="javascript ......
¡¾ÒýÓõØÖ·¡¿http://hi.baidu.com/rayshow/blog/item/9102258daac46810b31bbad3.html
ÔÚä¯ÀÀÆ÷ÖÐËäÈ»´ò¿ªÑ¡Ôñ¶Ô»°¿òºÍ±£´æÎļþ¶Ô»°¿òµÄ¹¦Äܲ¢²»³£Ê¹Ó㬵«ÓÐʱÈÔÈ»»áÓõÃÉÏ£¬±ÈÈçÒ»¸öweb°æµÄ²¥·ÅÆ÷£¬ÈÃÓû§Ñ¡Ôñ±¾µØµÄÊÓƵ»òÒôƵÎļþµÈ¡£¶ÔÓÚ´ò¿ªÑ¡ÔñÎļþ¶Ô»°¿òÀ´Ëµ£¬Ïà¶Ô±È½Ï¼òµ¥£¬Ö»ÐèÒªÔÚÒ³ÃæÄÚ·ÅÒ»¸öfile±êÇ©£¬¿ÉÒÔ½«Æä ......
eclipseÖÐjavascriptÏÔʾΪÂÒÂëµÄ½â¾ö°ì·¨¡£
Òà¿ÉÒÀ´ÎÑ¡Ôñ²Ëµ¥"window">>"preferences">>"general">>"content types"
ÔÚÓұߵĴ°¿ÚÖдò¿ªÁбí,Ñ¡ÖÐ"JavaScript",ÔÚÏÂÃæµÄ"default encoding"ÓұߵÄÊäÈë¿òÖÐÊäÈëjavaScript±àÂ룬Ҫ¿´ÄúµÄÍøÒ³ÓõıàÂ룬Èç¹ûÊÇ“GBK”¾ÍÑ¡"GBK",ÊÇ"GB2312"¾ ......