프레임을 쓰실때 생각할 것 세가지
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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7130 | 11년 전 | 2301 | ||
| 7129 | 11년 전 | 702 | ||
| 7128 |
senseme
|
11년 전 | 1279 | |
| 7127 | 11년 전 | 1157 | ||
| 7126 | 11년 전 | 807 | ||
| 7125 | 11년 전 | 2938 | ||
| 7124 | 11년 전 | 1416 | ||
| 7123 |
잘살아보자
|
11년 전 | 1273 | |
| 7122 |
잘살아보자
|
11년 전 | 674 | |
| 7121 |
잘살아보자
|
11년 전 | 3022 | |
| 7120 |
잘살아보자
|
11년 전 | 2901 | |
| 7119 |
잘살아보자
|
11년 전 | 720 | |
| 7118 |
잘살아보자
|
11년 전 | 3422 | |
| 7117 |
잘살아보자
|
11년 전 | 845 | |
| 7116 | 11년 전 | 732 | ||
| 7115 | 11년 전 | 1021 | ||
| 7114 | 11년 전 | 829 | ||
| 7113 | 11년 전 | 645 | ||
| 7112 | 11년 전 | 1066 | ||
| 7111 | 11년 전 | 1783 | ||
| 7110 | 11년 전 | 1023 | ||
| 7109 |
버섯먹은나
|
11년 전 | 788 | |
| 7108 | 11년 전 | 622 | ||
| 7107 | 11년 전 | 2397 | ||
| 7106 | 11년 전 | 1946 | ||
| 7105 | 11년 전 | 2475 | ||
| 7104 | 11년 전 | 1409 | ||
| 7103 |
|
11년 전 | 2692 | |
| 7102 | 11년 전 | 3111 | ||
| 7101 | 11년 전 | 4432 | ||
| 7100 | 11년 전 | 5779 | ||
| 7099 | 11년 전 | 2125 | ||
| 7098 | 11년 전 | 1708 | ||
| 7097 | 11년 전 | 1440 | ||
| 7096 | 11년 전 | 1115 | ||
| 7095 |
잘살아보자
|
11년 전 | 849 | |
| 7094 |
잘살아보자
|
11년 전 | 1042 | |
| 7093 |
잘살아보자
|
11년 전 | 919 | |
| 7092 |
잘살아보자
|
11년 전 | 1406 | |
| 7091 |
잘살아보자
|
11년 전 | 2200 | |
| 7090 |
잘살아보자
|
11년 전 | 873 | |
| 7089 | 11년 전 | 1049 | ||
| 7088 | 11년 전 | 1700 | ||
| 7087 | 11년 전 | 1395 | ||
| 7086 | 11년 전 | 1298 | ||
| 7085 |
|
11년 전 | 1218 | |
| 7084 | 11년 전 | 1140 | ||
| 7083 | 11년 전 | 3489 | ||
| 7082 | 11년 전 | 1133 | ||
| 7081 | 11년 전 | 1728 | ||
| 7080 | 11년 전 | 2006 | ||
| 7079 | 11년 전 | 1308 | ||
| 7078 | 11년 전 | 1289 | ||
| 7077 | 11년 전 | 1288 | ||
| 7076 | 11년 전 | 755 | ||
| 7075 | 11년 전 | 1148 | ||
| 7074 |
네이비칼라
|
11년 전 | 1494 | |
| 7073 | 11년 전 | 1463 | ||
| 7072 |
|
11년 전 | 825 | |
| 7071 | 11년 전 | 1184 | ||
| 7070 | 11년 전 | 927 | ||
| 7069 | 11년 전 | 1688 | ||
| 7068 | 11년 전 | 1334 | ||
| 7067 |
TPSint
|
11년 전 | 717 | |
| 7066 | 11년 전 | 2146 | ||
| 7065 | 11년 전 | 6632 | ||
| 7064 | 11년 전 | 1285 | ||
| 7063 | 11년 전 | 1128 | ||
| 7062 | 11년 전 | 1061 | ||
| 7061 | 11년 전 | 904 | ||
| 7060 | 11년 전 | 1456 | ||
| 7059 | 11년 전 | 852 | ||
| 7058 |
EngineMan
|
11년 전 | 3391 | |
| 7057 | 11년 전 | 1239 | ||
| 7056 | 11년 전 | 1630 | ||
| 7055 | 11년 전 | 1004 | ||
| 7054 | 11년 전 | 2645 | ||
| 7053 |
네이비칼라
|
11년 전 | 1274 | |
| 7052 | 11년 전 | 2572 | ||
| 7051 | 11년 전 | 1930 | ||
| 7050 | 11년 전 | 2445 | ||
| 7049 | 11년 전 | 1392 | ||
| 7048 | 11년 전 | 2521 | ||
| 7047 | 11년 전 | 1335 | ||
| 7046 | 11년 전 | 1024 | ||
| 7045 | 11년 전 | 1051 | ||
| 7044 | 11년 전 | 5429 | ||
| 7043 | 11년 전 | 1217 | ||
| 7042 | 11년 전 | 777 | ||
| 7041 |
열라뽕똬이
|
11년 전 | 749 | |
| 7040 | 11년 전 | 1104 | ||
| 7039 | 11년 전 | 1452 | ||
| 7038 | 11년 전 | 1866 | ||
| 7037 | 11년 전 | 2169 | ||
| 7036 | 11년 전 | 1081 | ||
| 7035 | 11년 전 | 1399 | ||
| 7034 | 11년 전 | 1341 | ||
| 7033 |
열라뽕똬이
|
11년 전 | 987 | |
| 7032 | 11년 전 | 748 | ||
| 7031 | 11년 전 | 2174 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기