What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » html form/javascript help

html form/javascript help
Author: Message:
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. html form/javascript help
I'm trying  to make a form submit to a new popup window opened with javascript, close after loading, and have the form page simply refresh.

Here's what I have so far:
code:
<form action='script.php' method='post' target='WindowName'
    onSubmit="func=window.open('', 'WindowName', 'height=100,width=100');
    setTimeout(window.location.reload(true), 2000)">
<!-- Form elements -->
<input type='submit' value='Submit'>
</form>

The window will open and the script will open there. But, the form will not refresh and I don't know how to close the new window after it loads. I need all of the JS to be inline, not have an external script.

can anyone help?

This post was edited on 10-24-2006 at 05:32 PM by MeEtc.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
10-24-2006 03:17 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
html form/javascript help - by MeEtc on 10-24-2006 at 03:17 PM
RE: html form/javascript help - by rav0 on 10-25-2006 at 07:36 AM
RE: html form/javascript help - by hmaster on 10-25-2006 at 10:09 AM
RE: html form/javascript help - by MeEtc on 10-25-2006 at 12:14 PM
RE: html form/javascript help - by hmaster on 10-25-2006 at 07:40 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On