<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: After submitting form - auto close</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: After submitting form - auto close</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 03:59:41 +0000</pubDate>

<item>
<title>yuniar on "After submitting form - auto close"</title>
<link>https://www.machform.com/forums/topic/after-submitting-form-auto-close#post-9797</link>
<pubDate>Sat, 26 Jun 2010 20:34:15 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">9797@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I've tested using the latest version of Firefox (3.6.4)&#60;br /&#62;
The javascript seems to be working when you display the form in a standalone mode (view.php).&#60;/p&#62;
&#60;p&#62;However, when you embed the form (using the iframe) it doesn't seem to work.
&#60;/p&#62;</description>
</item>
<item>
<title>lydia on "After submitting form - auto close"</title>
<link>https://www.machform.com/forums/topic/after-submitting-form-auto-close#post-9789</link>
<pubDate>Fri, 25 Jun 2010 17:07:24 +0000</pubDate>
<dc:creator>lydia</dc:creator>
<guid isPermaLink="false">9789@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;hi yuniar,&#60;/p&#62;
&#60;p&#62;I see from a previous post that you were able to do this in IE. Has it changed and is it now possible in Firefox.&#60;/p&#62;
&#60;p&#62;(Are you sure you want to do this? Your user won't have any clue what has happened if you do so.&#60;/p&#62;
&#60;p&#62;If you really sure, edit your embed.php and view.php file, around line 31 you will find this code:&#60;/p&#62;
&#60;p&#62;if($submit_result['status'] === true){&#60;/p&#62;
&#60;p&#62;Right under that line , insert this code:&#60;/p&#62;
&#60;p&#62;echo &#34;&#38;lt;script type=\&#34;text/javascript\&#34;&#38;gt;top.window.opener = top;top.window.open('','_parent','');top.window.close();&#38;lt;/script&#38;gt;&#34;;&#60;br /&#62;
exit;&#60;/p&#62;
&#60;p&#62;That should close your window immediately.&#60;/p&#62;
&#60;p&#62;However, the code above won't work in Firefox. Since I can't seem to find any javascript code to close Firefox tab.&#60;/p&#62;
&#60;p&#62;Anybody know? )&#60;/p&#62;
&#60;p&#62;thanks&#60;br /&#62;
Lydia
&#60;/p&#62;</description>
</item>

</channel>
</rss>
