parentpage.asp
<html>
<head>
<title>parentpage</title>
<script language="javascript" type="text/javascript">
<!--
function callParentpage(nextdata)
{
if(nextdata == "")
change.style.display = "";
else
change.style.display = "none";
}
-->
</script>
</head>
<body>
<div id=change style=postion:absolute; display:none;">
<br>
보여라
</div>
<iframe id=childpage name=childpage src=child.asp width=100 height=100 marginwidth=0 marginheight=0 scrolling=auto></iframe>
</body>
</html>
child.asp
<html>
<head>
<title>child page</title>
<script language="javascript" type="text/javascript">
<!--
function Senddata(nextdata)
{
parent.callParentpage(nextdata);
}
-->
</script>
</head>
<body onload=javascript:Senddata("")>
새로운 창에서 호출
</body>
</html>
댓글 없음:
댓글 쓰기