프레임을 쓰실때 생각할 것 세가지
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>
[펌] http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=5317&sfl=&stx=&sst=wr_hit&sod=desc&sop=and&page=36<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
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>
[펌] http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=5317&sfl=&stx=&sst=wr_hit&sod=desc&sop=and&page=36<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
댓글 2개
18년 전
와 좋은 정보 감사합니다.
18년 전
고맙습니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1330 | 18년 전 | 1480 | ||
| 1329 | 18년 전 | 1709 | ||
| 1328 | 18년 전 | 998 | ||
| 1327 | 18년 전 | 1407 | ||
| 1326 | 18년 전 | 2254 | ||
| 1325 | 18년 전 | 1139 | ||
| 1324 | 18년 전 | 1303 | ||
| 1323 | 18년 전 | 1565 | ||
| 1322 | 18년 전 | 1175 | ||
| 1321 | 18년 전 | 965 | ||
| 1320 | 18년 전 | 1188 | ||
| 1319 | 18년 전 | 1521 | ||
| 1318 | 18년 전 | 1646 | ||
| 1317 | 18년 전 | 1597 | ||
| 1316 | 18년 전 | 1209 | ||
| 1315 |
|
18년 전 | 8600 | |
| 1314 | 18년 전 | 1901 | ||
| 1313 | 18년 전 | 1492 | ||
| 1312 | 18년 전 | 1483 | ||
| 1311 | 18년 전 | 1775 | ||
| 1310 | 18년 전 | 1832 | ||
| 1309 | 18년 전 | 1220 | ||
| 1308 | 18년 전 | 978 | ||
| 1307 | 18년 전 | 2755 | ||
| 1306 | 18년 전 | 3107 | ||
| 1305 | 18년 전 | 2167 | ||
| 1304 | 18년 전 | 1555 | ||
| 1303 | 18년 전 | 1414 | ||
| 1302 | 18년 전 | 879 | ||
| 1301 | 18년 전 | 1773 | ||
| 1300 | 18년 전 | 5137 | ||
| 1299 | 18년 전 | 2853 | ||
| 1298 |
mixdesign
|
18년 전 | 2104 | |
| 1297 | 18년 전 | 3078 | ||
| 1296 | 18년 전 | 2541 | ||
| 1295 | 18년 전 | 2235 | ||
| 1294 |
onweb
|
18년 전 | 4556 | |
| 1293 |
onweb
|
18년 전 | 3488 | |
| 1292 | 18년 전 | 3453 | ||
| 1291 | 18년 전 | 4037 | ||
| 1290 | 18년 전 | 1905 | ||
| 1289 | 18년 전 | 1757 | ||
| 1288 | 18년 전 | 1726 | ||
| 1287 | 18년 전 | 1425 | ||
| 1286 | 18년 전 | 1263 | ||
| 1285 | 18년 전 | 1156 | ||
| 1284 | 18년 전 | 1159 | ||
| 1283 | 18년 전 | 1512 | ||
| 1282 | 18년 전 | 908 | ||
| 1281 | 18년 전 | 1269 | ||
| 1280 | 18년 전 | 1123 | ||
| 1279 | 18년 전 | 1139 | ||
| 1278 | 18년 전 | 3022 | ||
| 1277 | 18년 전 | 947 | ||
| 1276 | 18년 전 | 1155 | ||
| 1275 | 18년 전 | 2093 | ||
| 1274 | 18년 전 | 2225 | ||
| 1273 | 18년 전 | 1319 | ||
| 1272 | 18년 전 | 1905 | ||
| 1271 | 18년 전 | 1159 | ||
| 1270 | 18년 전 | 2490 | ||
| 1269 | 18년 전 | 6596 | ||
| 1268 |
페이지팩트
|
18년 전 | 3820 | |
| 1267 |
페이지팩트
|
18년 전 | 2226 | |
| 1266 |
|
18년 전 | 6294 | |
| 1265 | 18년 전 | 2571 | ||
| 1264 | 18년 전 | 2614 | ||
| 1263 | 18년 전 | 2122 | ||
| 1262 | 18년 전 | 2117 | ||
| 1261 |
페이지팩트
|
18년 전 | 2122 | |
| 1260 | 18년 전 | 3879 | ||
| 1259 |
|
18년 전 | 3935 | |
| 1258 |
|
18년 전 | 5036 | |
| 1257 | 18년 전 | 4133 | ||
| 1256 | 18년 전 | 2573 | ||
| 1255 | 18년 전 | 1805 | ||
| 1254 | 18년 전 | 2779 | ||
| 1253 | 18년 전 | 2712 | ||
| 1252 | 18년 전 | 2236 | ||
| 1251 | 18년 전 | 5414 | ||
| 1250 |
jbsstyle
|
18년 전 | 4760 | |
| 1249 |
|
18년 전 | 3767 | |
| 1248 | 18년 전 | 3451 | ||
| 1247 | 18년 전 | 2136 | ||
| 1246 | 18년 전 | 2134 | ||
| 1245 | 18년 전 | 3638 | ||
| 1244 |
|
18년 전 | 2276 | |
| 1243 |
|
18년 전 | 2493 | |
| 1242 | 18년 전 | 1763 | ||
| 1241 | 18년 전 | 4461 | ||
| 1240 | 18년 전 | 2152 | ||
| 1239 | 18년 전 | 2300 | ||
| 1238 | 18년 전 | 4039 | ||
| 1237 |
hwatta
|
18년 전 | 3889 | |
| 1236 | 18년 전 | 2113 | ||
| 1235 | 18년 전 | 2764 | ||
| 1234 | 18년 전 | 5141 | ||
| 1233 | 18년 전 | 2407 | ||
| 1232 |
|
18년 전 | 2948 | |
| 1231 | 18년 전 | 8500 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기