프레임을 쓰실때 생각할 것 세가지
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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 371 | ||
| 7829 |
|
9년 전 | 551 | |
| 7828 | 9년 전 | 482 | ||
| 7827 | 9년 전 | 370 | ||
| 7826 | 9년 전 | 375 | ||
| 7825 | 9년 전 | 429 | ||
| 7824 | 9년 전 | 415 | ||
| 7823 | 9년 전 | 319 | ||
| 7822 | 9년 전 | 315 | ||
| 7821 | 9년 전 | 261 | ||
| 7820 | 9년 전 | 314 | ||
| 7819 |
|
9년 전 | 715 | |
| 7818 | 10년 전 | 335 | ||
| 7817 | 10년 전 | 449 | ||
| 7816 | 10년 전 | 353 | ||
| 7815 | 10년 전 | 553 | ||
| 7814 | 10년 전 | 378 | ||
| 7813 | 10년 전 | 314 | ||
| 7812 | 10년 전 | 341 | ||
| 7811 | 10년 전 | 361 | ||
| 7810 | 10년 전 | 486 | ||
| 7809 | 10년 전 | 430 | ||
| 7808 | 10년 전 | 286 | ||
| 7807 | 10년 전 | 351 | ||
| 7806 |
프로그래머7
|
10년 전 | 1305 | |
| 7805 | 10년 전 | 1212 | ||
| 7804 |
zahir1312
|
10년 전 | 740 | |
| 7803 |
|
10년 전 | 1341 | |
| 7802 | 10년 전 | 396 | ||
| 7801 | 10년 전 | 824 | ||
| 7800 | 10년 전 | 1038 | ||
| 7799 | 10년 전 | 497 | ||
| 7798 | 10년 전 | 446 | ||
| 7797 | 10년 전 | 446 | ||
| 7796 | 10년 전 | 298 | ||
| 7795 | 10년 전 | 451 | ||
| 7794 | 10년 전 | 477 | ||
| 7793 | 10년 전 | 992 | ||
| 7792 | 10년 전 | 400 | ||
| 7791 | 10년 전 | 484 | ||
| 7790 | 10년 전 | 448 | ||
| 7789 |
fbastore
|
10년 전 | 1390 | |
| 7788 | 10년 전 | 483 | ||
| 7787 | 10년 전 | 347 | ||
| 7786 | 10년 전 | 500 | ||
| 7785 | 10년 전 | 516 | ||
| 7784 | 10년 전 | 584 | ||
| 7783 | 10년 전 | 386 | ||
| 7782 | 10년 전 | 442 | ||
| 7781 | 10년 전 | 842 | ||
| 7780 | 10년 전 | 775 | ||
| 7779 | 10년 전 | 745 | ||
| 7778 | 10년 전 | 315 | ||
| 7777 | 10년 전 | 391 | ||
| 7776 | 10년 전 | 400 | ||
| 7775 | 10년 전 | 336 | ||
| 7774 | 10년 전 | 597 | ||
| 7773 | 10년 전 | 320 | ||
| 7772 | 10년 전 | 660 | ||
| 7771 | 10년 전 | 326 | ||
| 7770 | 10년 전 | 608 | ||
| 7769 | 10년 전 | 324 | ||
| 7768 | 10년 전 | 545 | ||
| 7767 | 10년 전 | 1115 | ||
| 7766 | 10년 전 | 439 | ||
| 7765 | 10년 전 | 468 | ||
| 7764 |
잘살아보자
|
10년 전 | 323 | |
| 7763 |
|
10년 전 | 1394 | |
| 7762 |
Tosea
|
10년 전 | 1016 | |
| 7761 | 10년 전 | 611 | ||
| 7760 |
잘살아보자
|
10년 전 | 591 | |
| 7759 |
잘살아보자
|
10년 전 | 406 | |
| 7758 |
잘살아보자
|
10년 전 | 525 | |
| 7757 | 10년 전 | 1175 | ||
| 7756 |
ITBANK
|
10년 전 | 1216 | |
| 7755 | 10년 전 | 1893 | ||
| 7754 | 10년 전 | 990 | ||
| 7753 | 10년 전 | 840 | ||
| 7752 | 10년 전 | 1341 | ||
| 7751 |
잘살아보자
|
10년 전 | 468 | |
| 7750 |
잘살아보자
|
10년 전 | 434 | |
| 7749 |
잘살아보자
|
10년 전 | 432 | |
| 7748 |
잘살아보자
|
10년 전 | 418 | |
| 7747 |
잘살아보자
|
10년 전 | 504 | |
| 7746 |
잘살아보자
|
10년 전 | 622 | |
| 7745 |
잘살아보자
|
10년 전 | 867 | |
| 7744 |
잘살아보자
|
10년 전 | 384 | |
| 7743 | 10년 전 | 911 | ||
| 7742 |
starbros
|
10년 전 | 784 | |
| 7741 |
잘살아보자
|
10년 전 | 594 | |
| 7740 |
잘살아보자
|
10년 전 | 474 | |
| 7739 |
잘살아보자
|
10년 전 | 430 | |
| 7738 |
잘살아보자
|
10년 전 | 484 | |
| 7737 |
잘살아보자
|
10년 전 | 439 | |
| 7736 |
잘살아보자
|
10년 전 | 465 | |
| 7735 |
잘살아보자
|
10년 전 | 800 | |
| 7734 |
잘살아보자
|
10년 전 | 389 | |
| 7733 |
잘살아보자
|
10년 전 | 490 | |
| 7732 |
잘살아보자
|
10년 전 | 642 | |
| 7731 |
잘살아보자
|
10년 전 | 568 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기