Javascript 将表格从第1页提交到第3页内的iframe第2页,然后加载第3页
我在第#1页上有一个表单,我需要将它提交到第#2页,第#3页中的iframe。 我可以使用下面的代码从第#1页提交到iframe,但我需要的是当我在第#1页提交到加载第#3页时,它将加载提交的表单iframe 这是第1页的表格 target=“/search.html”表示页面#3链接,但不加载。相反,它在单独的窗口上加载iframeJavascript 将表格从第1页提交到第3页内的iframe第2页,然后加载第3页,javascript,forms,iframe,submit,Javascript,Forms,Iframe,Submit,我在第#1页上有一个表单,我需要将它提交到第#2页,第#3页中的iframe。 我可以使用下面的代码从第#1页提交到iframe,但我需要的是当我在第#1页提交到加载第#3页时,它将加载提交的表单iframe 这是第1页的表格 target=“/search.html”表示页面#3链接,但不加载。相反,它在单独的窗口上加载iframe <form id="SearchForm" action="search-results/" target="/search.html" method="p
<form id="SearchForm" action="search-results/" target="/search.html" method="post">
<input type="text" name="keywords[all_words]" />
<input type="text" name="City[all_words]" />
<a href="#" class="btn_search row_right" onclick="document.getElementById('SearchForm').submit()">Search</a>
您目前的方法不可能做到这一点;因为,首先您要导航到
第3页
,该页有一个iframe
,其中包括您要提交请求的页面。您使用的服务器端语言是php
还是类似的?