프레임을 쓰실때 생각할 것 세가지
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년 전 | 467 | ||
| 7829 |
|
10년 전 | 649 | |
| 7828 | 10년 전 | 577 | ||
| 7827 | 10년 전 | 481 | ||
| 7826 | 10년 전 | 500 | ||
| 7825 | 10년 전 | 534 | ||
| 7824 | 10년 전 | 490 | ||
| 7823 | 10년 전 | 433 | ||
| 7822 | 10년 전 | 406 | ||
| 7821 | 10년 전 | 355 | ||
| 7820 | 10년 전 | 371 | ||
| 7819 |
|
10년 전 | 772 | |
| 7818 | 10년 전 | 433 | ||
| 7817 | 10년 전 | 609 | ||
| 7816 | 10년 전 | 449 | ||
| 7815 | 10년 전 | 646 | ||
| 7814 | 10년 전 | 482 | ||
| 7813 | 10년 전 | 435 | ||
| 7812 | 10년 전 | 445 | ||
| 7811 | 10년 전 | 423 | ||
| 7810 | 10년 전 | 628 | ||
| 7809 | 10년 전 | 557 | ||
| 7808 | 10년 전 | 439 | ||
| 7807 | 10년 전 | 449 | ||
| 7806 |
프로그래머7
|
10년 전 | 1367 | |
| 7805 | 10년 전 | 1311 | ||
| 7804 |
zahir1312
|
10년 전 | 808 | |
| 7803 |
|
10년 전 | 1413 | |
| 7802 | 10년 전 | 513 | ||
| 7801 | 10년 전 | 886 | ||
| 7800 | 10년 전 | 1112 | ||
| 7799 | 10년 전 | 595 | ||
| 7798 | 10년 전 | 542 | ||
| 7797 | 10년 전 | 564 | ||
| 7796 | 10년 전 | 401 | ||
| 7795 | 10년 전 | 551 | ||
| 7794 | 10년 전 | 594 | ||
| 7793 | 10년 전 | 1095 | ||
| 7792 | 10년 전 | 520 | ||
| 7791 | 10년 전 | 613 | ||
| 7790 | 10년 전 | 539 | ||
| 7789 |
fbastore
|
10년 전 | 1493 | |
| 7788 | 10년 전 | 596 | ||
| 7787 | 10년 전 | 455 | ||
| 7786 | 10년 전 | 662 | ||
| 7785 | 10년 전 | 635 | ||
| 7784 | 10년 전 | 696 | ||
| 7783 | 10년 전 | 515 | ||
| 7782 | 10년 전 | 542 | ||
| 7781 | 10년 전 | 941 | ||
| 7780 | 10년 전 | 850 | ||
| 7779 | 10년 전 | 801 | ||
| 7778 | 10년 전 | 395 | ||
| 7777 | 10년 전 | 508 | ||
| 7776 | 10년 전 | 502 | ||
| 7775 | 10년 전 | 437 | ||
| 7774 | 10년 전 | 649 | ||
| 7773 | 10년 전 | 407 | ||
| 7772 | 10년 전 | 782 | ||
| 7771 | 10년 전 | 438 | ||
| 7770 | 10년 전 | 675 | ||
| 7769 | 10년 전 | 435 | ||
| 7768 | 10년 전 | 656 | ||
| 7767 | 10년 전 | 1212 | ||
| 7766 | 10년 전 | 540 | ||
| 7765 | 10년 전 | 601 | ||
| 7764 |
잘살아보자
|
10년 전 | 456 | |
| 7763 |
|
10년 전 | 1507 | |
| 7762 |
Tosea
|
10년 전 | 1092 | |
| 7761 | 10년 전 | 698 | ||
| 7760 |
잘살아보자
|
10년 전 | 773 | |
| 7759 |
잘살아보자
|
10년 전 | 613 | |
| 7758 |
잘살아보자
|
10년 전 | 668 | |
| 7757 | 10년 전 | 1301 | ||
| 7756 |
ITBANK
|
10년 전 | 1298 | |
| 7755 | 10년 전 | 1946 | ||
| 7754 | 10년 전 | 1106 | ||
| 7753 | 10년 전 | 925 | ||
| 7752 | 10년 전 | 1428 | ||
| 7751 |
잘살아보자
|
10년 전 | 582 | |
| 7750 |
잘살아보자
|
10년 전 | 512 | |
| 7749 |
잘살아보자
|
10년 전 | 544 | |
| 7748 |
잘살아보자
|
10년 전 | 566 | |
| 7747 |
잘살아보자
|
10년 전 | 643 | |
| 7746 |
잘살아보자
|
10년 전 | 706 | |
| 7745 |
잘살아보자
|
10년 전 | 951 | |
| 7744 |
잘살아보자
|
10년 전 | 443 | |
| 7743 | 10년 전 | 976 | ||
| 7742 |
starbros
|
10년 전 | 869 | |
| 7741 |
잘살아보자
|
10년 전 | 712 | |
| 7740 |
잘살아보자
|
10년 전 | 602 | |
| 7739 |
잘살아보자
|
10년 전 | 488 | |
| 7738 |
잘살아보자
|
10년 전 | 568 | |
| 7737 |
잘살아보자
|
10년 전 | 547 | |
| 7736 |
잘살아보자
|
10년 전 | 567 | |
| 7735 |
잘살아보자
|
10년 전 | 901 | |
| 7734 |
잘살아보자
|
10년 전 | 456 | |
| 7733 |
잘살아보자
|
10년 전 | 567 | |
| 7732 |
잘살아보자
|
10년 전 | 733 | |
| 7731 |
잘살아보자
|
10년 전 | 658 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기