프레임을 쓰실때 생각할 것 세가지
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년 전 | 384 | ||
| 7829 |
|
9년 전 | 564 | |
| 7828 | 9년 전 | 494 | ||
| 7827 | 9년 전 | 381 | ||
| 7826 | 9년 전 | 387 | ||
| 7825 | 9년 전 | 439 | ||
| 7824 | 9년 전 | 424 | ||
| 7823 | 9년 전 | 329 | ||
| 7822 | 9년 전 | 323 | ||
| 7821 | 9년 전 | 268 | ||
| 7820 | 9년 전 | 324 | ||
| 7819 |
|
9년 전 | 729 | |
| 7818 | 10년 전 | 345 | ||
| 7817 | 10년 전 | 464 | ||
| 7816 | 10년 전 | 369 | ||
| 7815 | 10년 전 | 573 | ||
| 7814 | 10년 전 | 399 | ||
| 7813 | 10년 전 | 341 | ||
| 7812 | 10년 전 | 349 | ||
| 7811 | 10년 전 | 368 | ||
| 7810 | 10년 전 | 509 | ||
| 7809 | 10년 전 | 442 | ||
| 7808 | 10년 전 | 311 | ||
| 7807 | 10년 전 | 368 | ||
| 7806 |
프로그래머7
|
10년 전 | 1311 | |
| 7805 | 10년 전 | 1235 | ||
| 7804 |
zahir1312
|
10년 전 | 748 | |
| 7803 |
|
10년 전 | 1350 | |
| 7802 | 10년 전 | 412 | ||
| 7801 | 10년 전 | 835 | ||
| 7800 | 10년 전 | 1069 | ||
| 7799 | 10년 전 | 508 | ||
| 7798 | 10년 전 | 468 | ||
| 7797 | 10년 전 | 462 | ||
| 7796 | 10년 전 | 305 | ||
| 7795 | 10년 전 | 459 | ||
| 7794 | 10년 전 | 490 | ||
| 7793 | 10년 전 | 1012 | ||
| 7792 | 10년 전 | 416 | ||
| 7791 | 10년 전 | 498 | ||
| 7790 | 10년 전 | 467 | ||
| 7789 |
fbastore
|
10년 전 | 1408 | |
| 7788 | 10년 전 | 500 | ||
| 7787 | 10년 전 | 361 | ||
| 7786 | 10년 전 | 517 | ||
| 7785 | 10년 전 | 534 | ||
| 7784 | 10년 전 | 602 | ||
| 7783 | 10년 전 | 409 | ||
| 7782 | 10년 전 | 453 | ||
| 7781 | 10년 전 | 866 | ||
| 7780 | 10년 전 | 788 | ||
| 7779 | 10년 전 | 756 | ||
| 7778 | 10년 전 | 323 | ||
| 7777 | 10년 전 | 414 | ||
| 7776 | 10년 전 | 415 | ||
| 7775 | 10년 전 | 351 | ||
| 7774 | 10년 전 | 605 | ||
| 7773 | 10년 전 | 340 | ||
| 7772 | 10년 전 | 677 | ||
| 7771 | 10년 전 | 336 | ||
| 7770 | 10년 전 | 618 | ||
| 7769 | 10년 전 | 336 | ||
| 7768 | 10년 전 | 553 | ||
| 7767 | 10년 전 | 1124 | ||
| 7766 | 10년 전 | 452 | ||
| 7765 | 10년 전 | 486 | ||
| 7764 |
잘살아보자
|
10년 전 | 336 | |
| 7763 |
|
10년 전 | 1404 | |
| 7762 |
Tosea
|
10년 전 | 1025 | |
| 7761 | 10년 전 | 615 | ||
| 7760 |
잘살아보자
|
10년 전 | 623 | |
| 7759 |
잘살아보자
|
10년 전 | 434 | |
| 7758 |
잘살아보자
|
10년 전 | 542 | |
| 7757 | 10년 전 | 1191 | ||
| 7756 |
ITBANK
|
10년 전 | 1223 | |
| 7755 | 10년 전 | 1905 | ||
| 7754 | 10년 전 | 1009 | ||
| 7753 | 10년 전 | 846 | ||
| 7752 | 10년 전 | 1353 | ||
| 7751 |
잘살아보자
|
10년 전 | 477 | |
| 7750 |
잘살아보자
|
10년 전 | 445 | |
| 7749 |
잘살아보자
|
10년 전 | 447 | |
| 7748 |
잘살아보자
|
10년 전 | 434 | |
| 7747 |
잘살아보자
|
10년 전 | 531 | |
| 7746 |
잘살아보자
|
10년 전 | 646 | |
| 7745 |
잘살아보자
|
10년 전 | 885 | |
| 7744 |
잘살아보자
|
10년 전 | 394 | |
| 7743 | 10년 전 | 918 | ||
| 7742 |
starbros
|
10년 전 | 799 | |
| 7741 |
잘살아보자
|
10년 전 | 618 | |
| 7740 |
잘살아보자
|
10년 전 | 488 | |
| 7739 |
잘살아보자
|
10년 전 | 444 | |
| 7738 |
잘살아보자
|
10년 전 | 496 | |
| 7737 |
잘살아보자
|
10년 전 | 456 | |
| 7736 |
잘살아보자
|
10년 전 | 477 | |
| 7735 |
잘살아보자
|
10년 전 | 808 | |
| 7734 |
잘살아보자
|
10년 전 | 405 | |
| 7733 |
잘살아보자
|
10년 전 | 509 | |
| 7732 |
잘살아보자
|
10년 전 | 662 | |
| 7731 |
잘살아보자
|
10년 전 | 585 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기