 |
|
|  |
|
 |
14³â Àü |
target(href) Ÿ°Ù»ç¿ë¹ý
ÇÁ·¹ÀÓÀ» ¾²½Ç¶§ »ý°¢ÇÒ °Í ¼¼°¡Áö
1. frame_name.location = 'url.php';
¶Ç´Â frame_name.location.href = 'url.php';
¶Ç´Â frame_name.location.replace('url.php')
2. parent.frame_name.location = 'url.php';
3. opener.parent.frame_name.location = 'url.php';
»õâÀ» ¿°ÔÇØÁØ Ã¢ÀÇ ÁÖ¼Ò¸¦ ¹Ù²Ù°í »õâÀ» ²ö´Ù.
<script>
opener.location.href = 'url.php';
self.close();
</script>
»õâÀ» ¿°ÔÇØÁØ Ã¢ÀÇ ÁÖ¼Ò¸¦ »õ·Î°íħÇÏ°í »õâÀ» ²ö´Ù
<script>
opener.location.reload();
self.close();
</script>
´Ù¸¥ ÇÁ·¡ÀÓÀÇ ÁÖ¼Ò¸¦ ¹Ù²Ù°Ô ÇÏ·Á¸é
<script>
frame_name.location.href = 'url.php';
</script>
ÇÁ·¡ÀÓ ±¸Á¶»ó »óÀ§ ÇÁ·¡ÀÓÀÇ ÁÖ¼Ò¸¦ ¹Ù²Ù°Ô ÇÏ·Á¸é
<script>
parent.location.href = 'url.php';
</script>
Ÿ°ÙÀÌ ÁöÁ¤µÈ ÇÁ·¹ÀÓÀ» ¹Ù²Û´Ù.(Ÿ°ÙÇϳª)
<script>
parent.target(Ÿ°Ù).location.href = 'url.php';
</script>
Ÿ°ÙÀÌ ÁöÁ¤µÈ ÇÁ·¹ÀÓÀ» ¹Ù²Û´Ù.(Ÿ°ÙµÑ)
<script>
parent.target1(Ÿ°Ù1).location.href = 'url1.php';
parent.target2(Ÿ°Ù2).location.href = 'url2.php';
</script>
Ÿ°ÙÀÌ ÁöÁ¤µÈ ÇÁ·¹ÀÓÀ» ¹Ù²Û´Ù.(Ÿ°Ù¼Â)
<script>
parent.target1(Ÿ°Ù1).location.href = 'url1.php';
parent.target2(Ÿ°Ù2).location.href = 'url2.php';
parent.target3(Ÿ°Ù3).location.href = 'url3.php';
</script>
Ÿ°ÙÀÌ ÁöÁ¤µÈ ÇÁ·¹Àӵΰ³¸¦ Ŭ¸¯À¸·Î ¹Ù²Ù·Á¸é
<script>
function target_frame(url1, url2)
{
parent.top_frame.location.href = url1;
parent.main_frame.location.href = url2;
}
</script>
<a href="javascript:target_frame('main_menu.html', '$go_url');"> È®ÀÎ </a>
·Î±×ÀÎÆäÀÌÁö ¿¡¼±
<script>
parent.top_frame.location.href = '../main.html'; //main.html´Â ·Î±×ÀÎÆäÀÌÁö º¸´Ù »óÀ§µð·ºÅ丮¿¡ ÀÖ´Ù.
parent.main_frame.location.href = '$go_url';
</script>
·Î±×ÀÎÆäÀÌÁö¸¦ »õâÀ¸·Î ¶ç¿ü´Ù¸é
<script>
opener.parent.top_frame.location.href = '../main.html';
opener.parent.main_frame.location.href = '$go_url';
self.close();
</script>
ÀÌ»óÀÔ´Ï´Ù. by.crabz
-------------------------------------
<script>
top.frames['calendar'].location.reload();
</script>
--------------------------------------------------
<a href="page.htm" target="_top">
top.location.href = 'page.htm';
--------------------------------------------------
<a href="page.htm" target="_self">
self.location.href = 'page.htm';
--------------------------------------------------
<a href="page.htm" target="_parent">
parent.location.href = 'page.htm';
--------------------------------------------------
<a href="page.htm" target="thatframe">
top.frames['thatframe'].location.href = 'page.htm';
--------------------------------------------------
<a href="page.htm" target="thatframe">
self.frames['thatframe'].location.href = 'page.htm';
--------------------------------------------------
|
|
̵̧ : 427 |
̵̧
¸ñ·Ï
|
|
|  |
|