일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 설치
- tomcat
- 잡토이
- Android
- 안드로이드
- 오라클
- librecad
- 시작하기
- 라즈베리파이
- 강좌
- html5
- Spring Security
- mysql
- s4a
- 아두이노
- 설정
- 잡토이 메이킹 코딩 학원
- 예제
- 코딩
- 운정
- MSSQL
- 유니티
- jsp
- Unity
- 리브레캐드
- 스크래치
- oracle
- jobtoy
- 파주
- 톰캣
- Today
- Total
랩제이
오페라 9.5 버전 iframe parent.frames 해결 방법 본문
오페라 9.5 버전에서 iframe을 사용해 parent.frames를 쓰고 있는데 먹지 않아서 애를 먹고 있다.
방법을 찾기 한 것 같다.
1. parent.frames 대신 parent. 사용하기
2. frameset 사용하기
다음 형식으로 frameset을 이용하면 다른 프레임셋에 저장해 두거나 받아 볼 수 있다.
--------------------------------------------------------------------
* frameset.html
--------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<title></title>
<script type="text/javascript">
window.onload=function(){
a0();
}
function a0() {
document.getElementById("frame_top").contentWindow.a1();
}
</script>
</head>
<frameset rows="*,*,*" frameborder=0 boarder=0 title="frameset" />
<frame src="a1.html" id="frame_top" name="frame_top" scrolling="auto" title="frame_top" NORESIZE />
<frame src="a2.html" id="frame_mid" name="frame_mid" scrolling="auto" title="frame_mid" NORESIZE />
<frame src="a3.html" id="frame_bot" name="frame_bot" scrolling="auto" title="frame_bot" NORESIZE />
<noframes title="noframe">
<body>
<p><a>이페이지를보려면, 프레임을 볼 수 있는 브라우저가 필요합니다.</a></p>
</body>
</noframes>
</frameset>
</html>
--------------------------------------------------------------------
* a2.html
--------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<title></title>
<style type="text/css">
body { font-family : Verdana, sans-serif; }
</style>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
window.onload=function(){
}
function a2() {
alert('a2');
}
function test() {
top.document.getElementById("frame_bot").contentWindow.a3();
}
</script>
</head>
<body>
<p>
a2 page!<br />
<a href="#" onclick="javascript
</p>
</body>
</html>
'programming > jsp' 카테고리의 다른 글
URIEncoding="UTF-8" (0) | 2012.03.21 |
---|---|
톰캣6.0 관리자 (0) | 2012.03.21 |
select box 다중 선택 (0) | 2012.03.21 |
openframework (0) | 2012.03.21 |
Jetty (0) | 2012.03.21 |