frame에서 target=_top 사용하기
frame 문서에서 target="_top"을 사용하고 싶을때
1. 원본 프레임문서
1-1. test1_1.php ----- 프레임 상단문서
<php
echo "<script>";
echo "window.open('test2.php','_top')"; // 프레임문서를 걷어내고 다른 페이지가 뜨게 하자
echo "</script>";
?>
1-2. test1_2.php ----- 프레임 하단문서
문서1-2
1-2. test1.php ----- 프레임문서
<html>
<head>
<title>해피정닷컴 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<frameset rows="*, 100px" frameborder="no" border="0" framespacing="0">
<frame name="main" noresize scrolling="auto" src="test1-1.php" marginwidth="0" marginheight="0" frameborder="no">
<frame name="session" scrolling="no" noresize src="test1-2.php" marginwidth="0" marginheight="0" frameborder="no" />
</frameset><noframes></noframes>
2. 연결시킬 새로운 프레임문서
2-1. test2_1.php ----- 프레임2 상단문서
문서2-1
2-2. test2_2.php ----- 프레임2 하단문서
문서2-2
2-3. test2.php ----- 프레임2
<html>
<head>
<title>해피정닷컴 2</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<frameset rows="*, 100px" frameborder="no" border="1" framespacing="0">
<frame name="main" noresize scrolling="auto" src="test2-1.php" marginwidth="0" marginheight="0" frameborder="no">
<frame name="session" scrolling="no" noresize src="test2-2.php" marginwidth="0" marginheight="0" frameborder="no" />
</frameset><noframes></noframes>
좋아요(추천)은 팁자료와 스킨을 만드는 힘의 원동력입니다.
1. 원본 프레임문서
1-1. test1_1.php ----- 프레임 상단문서
<php
echo "<script>";
echo "window.open('test2.php','_top')"; // 프레임문서를 걷어내고 다른 페이지가 뜨게 하자
echo "</script>";
?>
1-2. test1_2.php ----- 프레임 하단문서
문서1-2
1-2. test1.php ----- 프레임문서
<html>
<head>
<title>해피정닷컴 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<frameset rows="*, 100px" frameborder="no" border="0" framespacing="0">
<frame name="main" noresize scrolling="auto" src="test1-1.php" marginwidth="0" marginheight="0" frameborder="no">
<frame name="session" scrolling="no" noresize src="test1-2.php" marginwidth="0" marginheight="0" frameborder="no" />
</frameset><noframes></noframes>
2. 연결시킬 새로운 프레임문서
2-1. test2_1.php ----- 프레임2 상단문서
문서2-1
2-2. test2_2.php ----- 프레임2 하단문서
문서2-2
2-3. test2.php ----- 프레임2
<html>
<head>
<title>해피정닷컴 2</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<frameset rows="*, 100px" frameborder="no" border="1" framespacing="0">
<frame name="main" noresize scrolling="auto" src="test2-1.php" marginwidth="0" marginheight="0" frameborder="no">
<frame name="session" scrolling="no" noresize src="test2-2.php" marginwidth="0" marginheight="0" frameborder="no" />
</frameset><noframes></noframes>
좋아요(추천)은 팁자료와 스킨을 만드는 힘의 원동력입니다.
댓글 3개
12년 전
아직 돌아가는 구조는 이해 잘 못하지만
좋은자려 감사합니다
추천도 쾅~~여^^*
좋은자려 감사합니다
추천도 쾅~~여^^*
12년 전
요 팁의 포인트는 이렇습니다.
프레임을 사용해서 만들어진 홈페이지에서 프레임내부 문서에서 기존 프레임의 구조를 깨고
새로운 프레임문서 또는 단독문서를 열고자 사용하려는 것이구요.
프레임을 사용해서 만들어진 홈페이지에서 프레임내부 문서에서 기존 프레임의 구조를 깨고
새로운 프레임문서 또는 단독문서를 열고자 사용하려는 것이구요.
takumi22
12년 전
좋은 정보 고맙습니다
게시판 목록
그누4 팁자료실
그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.
나누면 즐거움이 커집니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3209 | 12년 전 | 4910 | ||
| 3208 |
Header
|
12년 전 | 3245 | |
| 3207 |
Header
|
12년 전 | 2858 | |
| 3206 |
Header
|
12년 전 | 4323 | |
| 3205 |
Header
|
12년 전 | 3867 | |
| 3204 |
Header
|
12년 전 | 6043 | |
| 3203 |
Header
|
12년 전 | 3246 | |
| 3202 | 12년 전 | 4491 | ||
| 3201 | 12년 전 | 4765 | ||
| 3200 | 12년 전 | 4386 | ||
| 3199 | 12년 전 | 5054 | ||
| 3198 |
|
12년 전 | 4940 | |
| 3197 |
|
12년 전 | 4688 | |
| 3196 | 12년 전 | 5066 | ||
| 3195 |
|
12년 전 | 4371 | |
| 3194 | 12년 전 | 4453 | ||
| 3193 | 12년 전 | 10838 | ||
| 3192 | 12년 전 | 9495 | ||
| 3191 | 12년 전 | 5144 | ||
| 3190 | 12년 전 | 8500 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기