Solved

How do I close a formmail window after submission?

Posted on 2007-04-11
1
219 Views
Last Modified: 2013-12-25
On my formmail.cgi script, I can assign a redirect page like this:

<input type=hidden name="redirect" value="http://www.mydomain.com/page.htm">

Because my form is a pop up window to the user, what can I put in the redirect parameter to close the window when it submits?
0
Comment
Question by:bemara57
1 Comment
 
LVL 11

Accepted Solution

by:
Isisagate earned 500 total points
ID: 18892380
You can't really put anything in the redirect param, but on the page you end up on you can add in

<script type="text/javascript"> window.close(); </script>

and that will close the window. However it will probably prompt the user if they want to or not becuase of security features put in place to keep a site from closing the window on load.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question