Submiting form to a popup in IE 6.0.2800.1106

P

Pat

Here is how I have been submiting a form to a popup window, this works
fine for all netscape versions and all IE versions previous to
6.0.2800.1106. Does anyone know a different way I can submit a form to
a popup window?

------------------------------------------------
<script language="JavaScript">
function new_window()
{
// Reference the form in this page
var f = document.forms.myformname;

// Open popup window and submit form
var popup_win = window.open('',f.target,'top=150,left=272,width=450,height=270');
popup_win.focus();
}
</script>

<form name="myformname" method="post" target="popup_win"
action="./target.cgi" onsubmit="new_window()">
<input type="submit" value="Submit">
</form>

------------------------------------------------
 
P

Pat

I should also mention that on IE 6.0.2800.1106 2 windows popup, the
popup window and a new 'target' window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top