Aşağıdaki form kodunda içerik ekle linkine tıkladığımızda popup pencere açılıyor açılan popup penceredeki text alanınını doldurup gönder dediğimizde popup kapanıp popup penceresini açtırdığımız sayfadaki text alanına popup ta yazdığımız içerik eklenmiş oluyor..
ana Sayfa Kodu
<head>
<meta http-equiv="Content-Language" content="tr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Yeni Sayfa 1</title>
<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body>
<form name="form1" method="POST" action="">
<p>
<input type="text" name="alan1" size="20"> <a href="javascript:openWin('b.html');">İçerik Ekle</a></p>
</form>
</body>
</html>Popup Pencerenin kodu
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Yeni Sayfa 2</title>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function kontrol()
{
window.opener.document.form1.alan1.value = document.form2.alan2.value;
window.close();
}
//-->
</SCRIPT>
</head>
<body>
<form name="form2" method="POST" onSubmit="return kontrol();" action="">
<p>
<input type="text" name="alan2" size="20"><input type="submit" value="Gönder" name="B1"><input type="reset" value="Sıfırla" name="B2"></p>
</form>
</body>
</html>Benim sorunum ise bu olayı aşağıda kodunu verdiğim hazırlamış olduğum forma uygulamak yardımcı olursanızsevinirim... <form action="flash_kaydet.php" method="post" name="flash" id="flash">
<TABLE class=formOuter cellSpacing=1 width="897">
<TBODY><TR><TD class=formHeader align=middle colSpan=2><div align="center">Yeni bir flash başlık eklemek için burayı doldurun</div></TD></TR>
<TR>
<TD class=formLabel align=left height=22 width="151">Başlığı : </TD>
<TD class=formElement width="737"><span class="stil5">
<input name="title" type="text" id="title" size="50">
</span></TD></TR>
<tr>
<TD class=formLabel align=left height=22>Spot : </TD>
<TD class=formElement><span class="stil5">
<input name="spot" type="text" id="spot" size="50">
</span></TD>
</tr>
<tr>
<TD class=formLabel align=left height=22>Büyük Resim : </TD>
<TD class=formElement><input type="text" name="image_big" size="50">
<a href="#" onClick="MM_openBrWindow('image_big.php','','width=350,height=200')" style="text-decoration: none"> <font color="#000066">Büyük Resim Ekle</font></a></TD>
</tr>
<tr>
<TD class=formLabel align=left height=22>Küçük Resim : </TD>
<TD class=formElement><span class="stil5">
<input name="image_small" type="text" id="image_small" size="50">
<a href="#" onClick="MM_openBrWindow('image_small.php','','width=350,height=200')" style="text-decoration: none"> <font color="#000066">Küçük Resim Ekle</font></a></span></TD>
</tr>
<tr>
<TD class=formLabel align=left height=22>Haber Link : </TD>
<TD class=formElement><span class="stil5">
<input name="link" type="text" id="link" size="50">
</span></TD>
</tr>
<tr>
<TD class=formLabel align=left height=22>Alt Link 1 : </TD>
<TD class=formElement><span class="stil5">
<input name="news_link1" type="text" id="news_link1" size="50">
</span></TD>
</tr>
<tr>
<TD class=formLabel align=left height=22>Alt Link 2 : </TD>
<TD class=formElement><span class="stil5">
<input name="news_link2" type="text" id="news_link2" size="50">
</span></TD>
</tr>
<tr>
<TD class=formLabel align=left height=22 width="151">Alt Link 3 : </TD>
<TD class=formElement width="737">
<label>
<span class="stil5">
<input name="news_link3" type="text" id="news_link3" size="50">
</span></label></TD>
</tr>
<TR>
<TD class=formLabel align=left height=22> </TD>
<TD class=formElement><span class="formFooter">
<input class=formButton type=submit value=Gönder name=submit>
<input class=formButton type=reset value=Temizle name="reset">
</span></TD>
</TR>
</TBODY></TABLE>
</FORM>