Note that there are some explanatory texts on larger screens.

plurals
  1. POjavascript submit 2 forms not working in chrome
    primarykey
    data
    text
    <p>I have 2 forms to be submitted on one submit click, to download 2 files.</p> <p>This is downloading 2 files in Firefox, but downloads only 1 file in chrome.</p> <p>I have edited and inserted full code as per the request.</p> <p>Full code:</p> <pre><code> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;EXPORT INVOICE &lt;/title&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt; &lt;SCRIPT LANGUAGE="JavaScript"&gt; function runscript() { document.f1.submit(); document.f2.submit(); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form name="f1" method="post" action="export-tst-with-header.php" target="_blank"&gt; &lt;table width="810" height="140" border="0" cellpadding="5" cellspacing="0" class="uniq" align="center"&gt; &lt;tr class="uniq"&gt; &lt;td width="363" valign="middle"&gt; &lt;br&gt; &lt;span class="sty2"&gt;Enter to export From Invoice No.:&lt;/span&gt; &lt;input type="text" size='10' maxlength='10' name="finv" onblur="showfrom(this.value);"&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="sty2"&gt;To Invoice No:&lt;/span&gt;&amp;nbsp; &lt;input type="text" size='10' maxlength='10' name="tinv" onblur="showto(this.value);"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr class="uniq"&gt; &lt;td width="363" valign="top"&gt;&lt;div align="center"&gt;&lt;br&gt; &lt;br&gt; &lt;/form&gt; &lt;form name="f2" method="post" action="export-tst-with-header2.php" target="_blank"&gt; &lt;/form&gt; &lt;input type="button" value="Export" onClick="runscript();" /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;a href='index.htm' target='_parent'&gt;&lt;input name="close" type="button" value="Close !"&gt;&lt;/a&gt; &lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;br&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload