프레임을 쓰실때 생각할 것 세가지
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년 전 | 378 | ||
| 7829 |
|
9년 전 | 557 | |
| 7828 | 9년 전 | 491 | ||
| 7827 | 9년 전 | 375 | ||
| 7826 | 9년 전 | 383 | ||
| 7825 | 9년 전 | 437 | ||
| 7824 | 9년 전 | 417 | ||
| 7823 | 9년 전 | 324 | ||
| 7822 | 9년 전 | 321 | ||
| 7821 | 9년 전 | 264 | ||
| 7820 | 9년 전 | 321 | ||
| 7819 |
|
9년 전 | 724 | |
| 7818 | 10년 전 | 337 | ||
| 7817 | 10년 전 | 459 | ||
| 7816 | 10년 전 | 360 | ||
| 7815 | 10년 전 | 565 | ||
| 7814 | 10년 전 | 391 | ||
| 7813 | 10년 전 | 336 | ||
| 7812 | 10년 전 | 347 | ||
| 7811 | 10년 전 | 362 | ||
| 7810 | 10년 전 | 497 | ||
| 7809 | 10년 전 | 438 | ||
| 7808 | 10년 전 | 307 | ||
| 7807 | 10년 전 | 362 | ||
| 7806 |
프로그래머7
|
10년 전 | 1309 | |
| 7805 | 10년 전 | 1229 | ||
| 7804 |
zahir1312
|
10년 전 | 747 | |
| 7803 |
|
10년 전 | 1347 | |
| 7802 | 10년 전 | 405 | ||
| 7801 | 10년 전 | 832 | ||
| 7800 | 10년 전 | 1057 | ||
| 7799 | 10년 전 | 507 | ||
| 7798 | 10년 전 | 459 | ||
| 7797 | 10년 전 | 456 | ||
| 7796 | 10년 전 | 304 | ||
| 7795 | 10년 전 | 457 | ||
| 7794 | 10년 전 | 482 | ||
| 7793 | 10년 전 | 1003 | ||
| 7792 | 10년 전 | 410 | ||
| 7791 | 10년 전 | 493 | ||
| 7790 | 10년 전 | 458 | ||
| 7789 |
fbastore
|
10년 전 | 1404 | |
| 7788 | 10년 전 | 491 | ||
| 7787 | 10년 전 | 357 | ||
| 7786 | 10년 전 | 509 | ||
| 7785 | 10년 전 | 528 | ||
| 7784 | 10년 전 | 595 | ||
| 7783 | 10년 전 | 396 | ||
| 7782 | 10년 전 | 449 | ||
| 7781 | 10년 전 | 857 | ||
| 7780 | 10년 전 | 781 | ||
| 7779 | 10년 전 | 749 | ||
| 7778 | 10년 전 | 317 | ||
| 7777 | 10년 전 | 404 | ||
| 7776 | 10년 전 | 407 | ||
| 7775 | 10년 전 | 343 | ||
| 7774 | 10년 전 | 602 | ||
| 7773 | 10년 전 | 328 | ||
| 7772 | 10년 전 | 670 | ||
| 7771 | 10년 전 | 330 | ||
| 7770 | 10년 전 | 615 | ||
| 7769 | 10년 전 | 333 | ||
| 7768 | 10년 전 | 548 | ||
| 7767 | 10년 전 | 1119 | ||
| 7766 | 10년 전 | 444 | ||
| 7765 | 10년 전 | 480 | ||
| 7764 |
잘살아보자
|
10년 전 | 328 | |
| 7763 |
|
10년 전 | 1403 | |
| 7762 |
Tosea
|
10년 전 | 1022 | |
| 7761 | 10년 전 | 614 | ||
| 7760 |
잘살아보자
|
10년 전 | 607 | |
| 7759 |
잘살아보자
|
10년 전 | 427 | |
| 7758 |
잘살아보자
|
10년 전 | 536 | |
| 7757 | 10년 전 | 1185 | ||
| 7756 |
ITBANK
|
10년 전 | 1218 | |
| 7755 | 10년 전 | 1898 | ||
| 7754 | 10년 전 | 1003 | ||
| 7753 | 10년 전 | 846 | ||
| 7752 | 10년 전 | 1349 | ||
| 7751 |
잘살아보자
|
10년 전 | 476 | |
| 7750 |
잘살아보자
|
10년 전 | 442 | |
| 7749 |
잘살아보자
|
10년 전 | 443 | |
| 7748 |
잘살아보자
|
10년 전 | 424 | |
| 7747 |
잘살아보자
|
10년 전 | 515 | |
| 7746 |
잘살아보자
|
10년 전 | 637 | |
| 7745 |
잘살아보자
|
10년 전 | 879 | |
| 7744 |
잘살아보자
|
10년 전 | 392 | |
| 7743 | 10년 전 | 912 | ||
| 7742 |
starbros
|
10년 전 | 788 | |
| 7741 |
잘살아보자
|
10년 전 | 613 | |
| 7740 |
잘살아보자
|
10년 전 | 479 | |
| 7739 |
잘살아보자
|
10년 전 | 438 | |
| 7738 |
잘살아보자
|
10년 전 | 491 | |
| 7737 |
잘살아보자
|
10년 전 | 451 | |
| 7736 |
잘살아보자
|
10년 전 | 472 | |
| 7735 |
잘살아보자
|
10년 전 | 804 | |
| 7734 |
잘살아보자
|
10년 전 | 399 | |
| 7733 |
잘살아보자
|
10년 전 | 499 | |
| 7732 |
잘살아보자
|
10년 전 | 653 | |
| 7731 |
잘살아보자
|
10년 전 | 581 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기