프레임을 쓰실때 생각할 것 세가지
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년 전 | 368 | ||
| 7829 |
|
9년 전 | 547 | |
| 7828 | 9년 전 | 480 | ||
| 7827 | 9년 전 | 367 | ||
| 7826 | 9년 전 | 373 | ||
| 7825 | 9년 전 | 428 | ||
| 7824 | 9년 전 | 414 | ||
| 7823 | 9년 전 | 315 | ||
| 7822 | 9년 전 | 314 | ||
| 7821 | 9년 전 | 261 | ||
| 7820 | 9년 전 | 313 | ||
| 7819 |
|
9년 전 | 713 | |
| 7818 | 10년 전 | 334 | ||
| 7817 | 10년 전 | 443 | ||
| 7816 | 10년 전 | 352 | ||
| 7815 | 10년 전 | 553 | ||
| 7814 | 10년 전 | 372 | ||
| 7813 | 10년 전 | 311 | ||
| 7812 | 10년 전 | 340 | ||
| 7811 | 10년 전 | 359 | ||
| 7810 | 10년 전 | 484 | ||
| 7809 | 10년 전 | 429 | ||
| 7808 | 10년 전 | 281 | ||
| 7807 | 10년 전 | 346 | ||
| 7806 |
프로그래머7
|
10년 전 | 1301 | |
| 7805 | 10년 전 | 1209 | ||
| 7804 |
zahir1312
|
10년 전 | 739 | |
| 7803 |
|
10년 전 | 1339 | |
| 7802 | 10년 전 | 393 | ||
| 7801 | 10년 전 | 823 | ||
| 7800 | 10년 전 | 1035 | ||
| 7799 | 10년 전 | 495 | ||
| 7798 | 10년 전 | 443 | ||
| 7797 | 10년 전 | 442 | ||
| 7796 | 10년 전 | 297 | ||
| 7795 | 10년 전 | 449 | ||
| 7794 | 10년 전 | 473 | ||
| 7793 | 10년 전 | 989 | ||
| 7792 | 10년 전 | 398 | ||
| 7791 | 10년 전 | 479 | ||
| 7790 | 10년 전 | 448 | ||
| 7789 |
fbastore
|
10년 전 | 1386 | |
| 7788 | 10년 전 | 482 | ||
| 7787 | 10년 전 | 343 | ||
| 7786 | 10년 전 | 496 | ||
| 7785 | 10년 전 | 514 | ||
| 7784 | 10년 전 | 581 | ||
| 7783 | 10년 전 | 384 | ||
| 7782 | 10년 전 | 437 | ||
| 7781 | 10년 전 | 841 | ||
| 7780 | 10년 전 | 773 | ||
| 7779 | 10년 전 | 745 | ||
| 7778 | 10년 전 | 313 | ||
| 7777 | 10년 전 | 388 | ||
| 7776 | 10년 전 | 394 | ||
| 7775 | 10년 전 | 333 | ||
| 7774 | 10년 전 | 595 | ||
| 7773 | 10년 전 | 319 | ||
| 7772 | 10년 전 | 660 | ||
| 7771 | 10년 전 | 322 | ||
| 7770 | 10년 전 | 607 | ||
| 7769 | 10년 전 | 319 | ||
| 7768 | 10년 전 | 542 | ||
| 7767 | 10년 전 | 1114 | ||
| 7766 | 10년 전 | 438 | ||
| 7765 | 10년 전 | 464 | ||
| 7764 |
잘살아보자
|
10년 전 | 321 | |
| 7763 |
|
10년 전 | 1393 | |
| 7762 |
Tosea
|
10년 전 | 1015 | |
| 7761 | 10년 전 | 610 | ||
| 7760 |
잘살아보자
|
10년 전 | 587 | |
| 7759 |
잘살아보자
|
10년 전 | 402 | |
| 7758 |
잘살아보자
|
10년 전 | 522 | |
| 7757 | 10년 전 | 1171 | ||
| 7756 |
ITBANK
|
10년 전 | 1214 | |
| 7755 | 10년 전 | 1892 | ||
| 7754 | 10년 전 | 985 | ||
| 7753 | 10년 전 | 839 | ||
| 7752 | 10년 전 | 1338 | ||
| 7751 |
잘살아보자
|
10년 전 | 467 | |
| 7750 |
잘살아보자
|
10년 전 | 429 | |
| 7749 |
잘살아보자
|
10년 전 | 429 | |
| 7748 |
잘살아보자
|
10년 전 | 417 | |
| 7747 |
잘살아보자
|
10년 전 | 502 | |
| 7746 |
잘살아보자
|
10년 전 | 619 | |
| 7745 |
잘살아보자
|
10년 전 | 865 | |
| 7744 |
잘살아보자
|
10년 전 | 383 | |
| 7743 | 10년 전 | 910 | ||
| 7742 |
starbros
|
10년 전 | 781 | |
| 7741 |
잘살아보자
|
10년 전 | 593 | |
| 7740 |
잘살아보자
|
10년 전 | 471 | |
| 7739 |
잘살아보자
|
10년 전 | 428 | |
| 7738 |
잘살아보자
|
10년 전 | 483 | |
| 7737 |
잘살아보자
|
10년 전 | 437 | |
| 7736 |
잘살아보자
|
10년 전 | 463 | |
| 7735 |
잘살아보자
|
10년 전 | 797 | |
| 7734 |
잘살아보자
|
10년 전 | 388 | |
| 7733 |
잘살아보자
|
10년 전 | 484 | |
| 7732 |
잘살아보자
|
10년 전 | 639 | |
| 7731 |
잘살아보자
|
10년 전 | 565 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기