Buy Anything On eBay - Mortgage - Buy PSP - Credit Cards UK - Send Telegram

PDA

View Full Version : Popup Window From Form


diarratech
Feb 4th 2008, 12:31 pm
Hi, I have a problem calling back my popup window when I minimized it
Here is the script
<SCRIPT TYPE="text/javascript">
<!--
function popupform(myform, windowname)
{
if (! window.focus)return true;
window.open('', windowname, 'height=(500,width=500,scrollbars=yes');
myform.target=windowname;
return true;
}
//-->
</SCRIPT>

Here is the form
<FORM METHOD=POST
ACTION="../reponse.asp"
onSubmit="popupform(this, 'pop')">
name: <input name ="name">
<input type = SUBMIT Value="ok">
</form>

Thanks

locdev
Feb 5th 2008, 5:30 am
not 100% sure but try this code:

<SCRIPT TYPE="text/javascript">
<!--
function popupform(myform, windowname)
{
if (!window.focus)return true;
w=window.open('', windowname, 'height=(500,width=500,scrollbars=yes');
w.focus();
myform.target=windowname;
return true;
}
//-->
</SCRIPT>