PDA

View Full Version : when a FORM is posted...launch poup INSTEAD of going to another page?..possible?


BrightNail
11-18-2002, 02:20 AM
hello all,

if I have a form that when you 'submit', it has the action="POST", instead of going to a new page or refreshing the current one...can I pop a popup?...like a thank you page or something....
I believe this is tricky with form posts..

thanks,
james

x_goose_x
11-18-2002, 02:34 AM
<form method="POST" target="_blank" action="myaction.htm">

glenngv
11-18-2002, 02:36 AM
function openPopUp(){
win = window.open("","mypopup","width=500,height=200");
win.focus();
}

then in the form:

<form name="..." target="post" action="..." target="mypopup">
...
<input type="submit" name="btnSubmit" value="Submit" onclick="openPopUp()">

BrightNail
11-18-2002, 06:13 AM
cool..thanks, I'll give it a go..appreciate it..