Click to See Complete Forum and Search --> : How to: close e-mail box automatically?


RBonzo
10-13-2003, 08:35 AM
I have written a basic Mailto form which I will insert into the body of an e-mail with a submit button at the bottom. It works fine, BUT, the form does not close the e-mail box automatically when the user clicks 'submit'. Is there a way I can do that with Java or other language?

Khalid Ali
10-13-2003, 09:35 AM
If I understood you correctly,then here is wat happens.
when you press submit and the action attribute of the form triggers the rest of the form/page is out of focus, that means you are not able to perform any more actions on the document.

RBonzo
10-13-2003, 10:08 AM
Thank you for responding, but I don't think what you describe is what happens. What happens, right now, is that when the user clicks submit, the data is submitted, but the e-mail window remains open and in focus. What I would like to do is make the window close automatically after the user clicks submit. Any further thoughts you may have would be most welcome.

Khalid Ali
10-13-2003, 11:10 AM
Originally posted by RBonzo
but the e-mail window remains open and in focus.

is this email window is a browser window or its an email client window?

post a link to the page where you have thi simplemented

RBonzo
10-13-2003, 12:25 PM
I intend for it to appear in the client e-mail window - that is, I paste it directly into an e-mail formatted in html, and then send it

but I have posted it so you can look at it with a browser right now

thanks for taking a look!

http://www.focuspointe.net/eval.html

Khalid Ali
10-13-2003, 12:39 PM
if you intend to close a desktop email client from browser then ,I am afraid that won't be possible with JavaScript

RBonzo
10-13-2003, 02:01 PM
oh well - thanks anyhow