Solved

How do I close a formmail window after submission?

Posted on 2007-04-11
1
216 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to count occurrences of each item in an array.

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now