0
我在頁面中有一個iframe,我希望能夠同時向父窗口和iframe提交值。從父窗口和父窗口提交功能給父窗口和iframe
父窗口的形式是
<form name="ptform" action="javascript:void(0);" onsubmit="javascript:handleSubmit();">
<input class="zipcode" type="text" size="35" id="location" value="">
<input class="method" type="hidden" id="method">
<input class="search" type="submit" value="Search">
</form>
和iframe的形式是
<form action="/embed/" method="get" onsubmit="return geocode()">
<div id="addrWrap">
<input type="text" id="addr" maxlength="100" autocomplete="off" />
</div>
<div id="searchWrap">
<input type="button" id="search" value="o" alt='Search' title='Search' onclick="geocode()" />
</div>
</form>
如何合併的形式提交給兩個父窗口,並在iframe中同時?
這應該做的伎倆http://stackoverflow.com/questions/942772/html-form-with-two-submit-buttons-and-two-target - 屬性 – 2013-04-30 19:16:53