Note that there are some explanatory texts on larger screens.

plurals
  1. POForm target to be the iframes PARENT
    text
    copied!<p>I have a form that is inside of an iframe and I need to make sure that form submits to the parent of the iframe. Target="_top" and target="_parent" isn't working and I am starting to get a little bit aggravated with myself. </p> <p>If anyone can point me in the right direction that'd be awesome. :)</p> <p>I have a normal iframe with the src to an html page - that html page goes has this...</p> <pre><code>&lt;form action="#" method="post" target="_parent" &gt; &lt;table id="Table_01" width="308" height="411" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tr&gt; &lt;td colspan="6"&gt; &lt;img src="index_01.png" width="308" height="163" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="2" rowspan="4"&gt; &lt;img src="index_02.png" width="112" height="142" alt=""&gt;&lt;/td&gt; &lt;td colspan="3" style="background-image: url('optin_name.png');" width="189" height="40" alt=""&gt; &lt;input type="text" name="name" style="background: transparent;border:0px;font-size:25px;width:185px;height:37px"&gt; &lt;/td&gt; &lt;td rowspan="6"&gt; &lt;img src="index_04.png" width="7" height="247" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="3"&gt; &lt;img src="index_05.png" width="189" height="33" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="2" style="background-image: url('optin_email.png');" width="188" height="40" alt=""&gt; &lt;input type="text" name="email" style="background: transparent;font-size:25px;border:0px;width:185px;height:37px;"&gt; &lt;/td&gt; &lt;td rowspan="4"&gt; &lt;img src="index_07.png" width="1" height="174" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="2"&gt; &lt;img src="index_08.png" width="188" height="29" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td rowspan="2"&gt; &lt;img src="index_09.png" width="73" height="105" alt=""&gt;&lt;/td&gt; &lt;td colspan="2" style="background-image: url('optin_submit.png');" width="174" height="54" alt=""&gt; &lt;input type="submit" name="submit" value=" " style="background: transparent;border:0px;width:170px;height:50px;"&gt; &lt;/td&gt; &lt;td rowspan="2"&gt; &lt;img src="index_11.png" width="53" height="105" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="2"&gt; &lt;img src="index_12.png" width="174" height="51" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;img src="spacer.gif" width="73" height="1" alt=""&gt;&lt;/td&gt; &lt;td&gt; &lt;img src="spacer.gif" width="39" height="1" alt=""&gt;&lt;/td&gt; &lt;td&gt; &lt;img src="spacer.gif" width="135" height="1" alt=""&gt;&lt;/td&gt; &lt;td&gt; &lt;img src="spacer.gif" width="53" height="1" alt=""&gt;&lt;/td&gt; &lt;td&gt; &lt;img src="spacer.gif" width="1" height="1" alt=""&gt;&lt;/td&gt; &lt;td&gt; &lt;img src="spacer.gif" width="7" height="1" alt=""&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; </code></pre> <p>I cannot get it to post to the iframes parent windows opposed to in a new windows and/or inside the iframe itself, both are no no's.</p>
 

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