아래 코드는 childframe.htm 안에 기술된 자바스크립트 함수(Save())를 호출하는 구문입니다.
<html>
<head>
<title>Parent</title>
<script language=" xxJavaScript">
function callHelloWorld() {
document.frames[0]. Save();
}
</script>
</head>
<body 0nclick="callHelloWorld()">
<form>
<iframe id="child" src="childframe.htm" width="200" height="200"></iframe>
</form>
</body>
</html>
<html>
<head>
<title>Parent</title>
<script language=" xxJavaScript">
function callHelloWorld() {
document.frames[0]. Save();
}
</script>
</head>
<body 0nclick="callHelloWorld()"
<form>
<iframe id="child" src="childframe.htm" width="200" height="200"></iframe>
</form>
</body>
</html>
iframe 안에 있는 내용물을 저장하기 위해서는 본 페이지에서 하나하나의 각각 iframe 에 있는 저장모듈을 호출해야 겠고요. 어려운 점은 트랜젝션 처리를 잘 하시면될듯 싶네요.
다음검색