프레임을 쓰실때 생각할 것 세가지
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년 전
고맙습니다.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 10년 전 | 481 | ||
| 7829 |
|
10년 전 | 667 | |
| 7828 | 10년 전 | 586 | ||
| 7827 | 10년 전 | 486 | ||
| 7826 | 10년 전 | 506 | ||
| 7825 | 10년 전 | 552 | ||
| 7824 | 10년 전 | 503 | ||
| 7823 | 10년 전 | 437 | ||
| 7822 | 10년 전 | 414 | ||
| 7821 | 10년 전 | 363 | ||
| 7820 | 10년 전 | 373 | ||
| 7819 |
|
10년 전 | 778 | |
| 7818 | 10년 전 | 437 | ||
| 7817 | 10년 전 | 614 | ||
| 7816 | 10년 전 | 456 | ||
| 7815 | 10년 전 | 658 | ||
| 7814 | 10년 전 | 492 | ||
| 7813 | 10년 전 | 440 | ||
| 7812 | 10년 전 | 455 | ||
| 7811 | 10년 전 | 431 | ||
| 7810 | 10년 전 | 632 | ||
| 7809 | 10년 전 | 568 | ||
| 7808 | 10년 전 | 450 | ||
| 7807 | 10년 전 | 460 | ||
| 7806 |
프로그래머7
|
10년 전 | 1377 | |
| 7805 | 10년 전 | 1323 | ||
| 7804 |
zahir1312
|
10년 전 | 821 | |
| 7803 |
|
10년 전 | 1429 | |
| 7802 | 10년 전 | 520 | ||
| 7801 | 10년 전 | 899 | ||
| 7800 | 10년 전 | 1118 | ||
| 7799 | 10년 전 | 600 | ||
| 7798 | 10년 전 | 546 | ||
| 7797 | 10년 전 | 576 | ||
| 7796 | 10년 전 | 408 | ||
| 7795 | 10년 전 | 558 | ||
| 7794 | 10년 전 | 596 | ||
| 7793 | 10년 전 | 1103 | ||
| 7792 | 10년 전 | 533 | ||
| 7791 | 10년 전 | 621 | ||
| 7790 | 10년 전 | 556 | ||
| 7789 |
fbastore
|
10년 전 | 1510 | |
| 7788 | 10년 전 | 608 | ||
| 7787 | 10년 전 | 468 | ||
| 7786 | 10년 전 | 671 | ||
| 7785 | 10년 전 | 647 | ||
| 7784 | 10년 전 | 706 | ||
| 7783 | 10년 전 | 524 | ||
| 7782 | 10년 전 | 549 | ||
| 7781 | 10년 전 | 956 | ||
| 7780 | 10년 전 | 860 | ||
| 7779 | 10년 전 | 808 | ||
| 7778 | 10년 전 | 399 | ||
| 7777 | 10년 전 | 519 | ||
| 7776 | 10년 전 | 511 | ||
| 7775 | 10년 전 | 446 | ||
| 7774 | 10년 전 | 658 | ||
| 7773 | 10년 전 | 416 | ||
| 7772 | 10년 전 | 794 | ||
| 7771 | 10년 전 | 450 | ||
| 7770 | 10년 전 | 688 | ||
| 7769 | 10년 전 | 450 | ||
| 7768 | 10년 전 | 668 | ||
| 7767 | 10년 전 | 1217 | ||
| 7766 | 10년 전 | 556 | ||
| 7765 | 10년 전 | 608 | ||
| 7764 |
잘살아보자
|
10년 전 | 462 | |
| 7763 |
|
10년 전 | 1513 | |
| 7762 |
Tosea
|
10년 전 | 1104 | |
| 7761 | 10년 전 | 723 | ||
| 7760 |
잘살아보자
|
10년 전 | 782 | |
| 7759 |
잘살아보자
|
10년 전 | 620 | |
| 7758 |
잘살아보자
|
10년 전 | 685 | |
| 7757 | 10년 전 | 1310 | ||
| 7756 |
ITBANK
|
10년 전 | 1311 | |
| 7755 | 10년 전 | 1969 | ||
| 7754 | 10년 전 | 1113 | ||
| 7753 | 10년 전 | 936 | ||
| 7752 | 10년 전 | 1436 | ||
| 7751 |
잘살아보자
|
10년 전 | 594 | |
| 7750 |
잘살아보자
|
10년 전 | 536 | |
| 7749 |
잘살아보자
|
10년 전 | 553 | |
| 7748 |
잘살아보자
|
10년 전 | 576 | |
| 7747 |
잘살아보자
|
10년 전 | 649 | |
| 7746 |
잘살아보자
|
10년 전 | 721 | |
| 7745 |
잘살아보자
|
10년 전 | 963 | |
| 7744 |
잘살아보자
|
10년 전 | 456 | |
| 7743 | 10년 전 | 994 | ||
| 7742 |
starbros
|
10년 전 | 882 | |
| 7741 |
잘살아보자
|
10년 전 | 727 | |
| 7740 |
잘살아보자
|
10년 전 | 618 | |
| 7739 |
잘살아보자
|
10년 전 | 502 | |
| 7738 |
잘살아보자
|
10년 전 | 576 | |
| 7737 |
잘살아보자
|
10년 전 | 556 | |
| 7736 |
잘살아보자
|
10년 전 | 575 | |
| 7735 |
잘살아보자
|
10년 전 | 905 | |
| 7734 |
잘살아보자
|
10년 전 | 470 | |
| 7733 |
잘살아보자
|
10년 전 | 575 | |
| 7732 |
잘살아보자
|
10년 전 | 743 | |
| 7731 |
잘살아보자
|
10년 전 | 665 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기