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&
Ïà¹ØÎĵµ£º
±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔÀ´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷ÔÒò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......
ÔÚ½øÈëÕýÌâÇ°£¬ÎÒÃÇ¿´Ò»ÏÂä¯ÀÀÆ÷¶ÔÓÚ¼üÅ̵ÄһЩĬÈÏʼþ£¬ÕâÓÐÖúÓÚÎÒÃÇÓÃjavascript½Ø»ñ¼üÅÌʼþ¡£
ÔÚformÖУ¬ submitµÄ¿ì½Ý¼üÊÇ enter£¬resetµÄ¿ì½Ý¼üÊÇ esc¡£²»¹ýÔÚ
IE6,safari4,ff3.5,opera10,chromeÖÐ
£¬°´Enter£¬²»µ«¼¤·¢formµÄsubmitʼþ£¬Í¬Ê±Ò²»á¼¤·¢
Ìá½»°´Å¥µÄonclick£¬¼¤·¢Ë³ÐòΪÌá½»°´Å¥µÄ onclick &rarr ......
<script type="text/javascript">
function close(){
QQkefu.style.display="none";
return true;
}
function msgBox()
{
this.container = "aaaa";
this.titleheadArea = "titlehead";
this.width = 154; ......
ÒÔÇ°ÒòΪ½Ó´¥µÄÏîÄ¿£¬Óõ½javascriptµÄµØ·½£¬±¾È˶ÔjavascriptÕâ¸ö¶«Î÷ÈÏʶ²»¹»£¬ÉõÖÁÒÔΪÊÇǰ̨³ÌÐòÔ±µÄ¹¤×÷¡£×î½ü×öµÄÏîÄ¿ÀïÃæÓõ½Á˺ܶàÕâÖֽű¾ÓïÑÔ£¬²Å·¢ÏÖÕâ¸öС¶«¶«ÊµÔÚÊǺܿɰ®£¬ËäÈ»ºÜÌÔÆø£¨²»ÊǺÜÃæÏò¶ÔÏñ£¬²»ÊǺܺõ÷ÊÔ£©£¬µ«ÊÇÖ»ÒªÊÇ×öweb¿ª·¢µÄ£¬¶¼ÄÑÃâÒª½Ó´¥µ½Ëû£¬°ÑÕ⸠......
ShowModalDialogº¯ÊýµÄ¹¦ÄÜ£º
´ò¿ªÒ»¸ö×Ó´°¿Ú£¬²¢ÇÒ¿ÉÓ븸´°¿ÚÏ໥´«µÝÊý¾Ý£¬ËüÓëwindow.openµÄ×î´óÇø±ð¾ÍÔÚÓÚÓÉShowModalDialog´ò¿ª×Ó´°¿Úºó£¬¸¸´°¿Ú½«²»ÄܲÙ×÷¡£
ʹÓ÷½·¨£º
vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
²ÎÊý˵Ã÷£º
sURL
±ØÑ¡²ÎÊý£¬ÀàÐÍ£º×Ö·û´®¡£ÓÃÀ´Ö¸¶¨¶Ô»°¿òÒªÏ ......