弹处子窗口的数据提交到父窗口处理???
index.htm:
<html>
<form id="webform">
<iframe name="ifrmAttachments" id="attachfrm" frameborder="0" src="a.htm" >
</iframe>
</form>
</html>
--------------------------------------
a.htm:
<SCRIPT LANGUAGE=javascript>
<!--
function deal(){
window.open("b.htm","","");
}
//-->
</SCRIPT>
<input type="submit" name="Submit" value="Submit" onclick="javascript:deal();">
--------------------------------------
b.htm:
<form name="form1" method="post" action="c.htm" target="???">
<input type="button" name="Submit" value="Submit" >
</form>
--------------------------------------
c.htm:
hello world!
--------------------------------------
现在要通过b.html的按钮提交表单后,index.htm的iframe出现c.htm的内容。
我尝试改变b.html的target,但是没有成功。高人请指点!