On Fri, 23 Jun 2006 11:04:12 +0000, ppcguy wrote:
i'm submitting a form via javascript.
form.submit();
i'd like the results of the POST to open in a new window (i can set the
target)
but while configuring certain windows frame features (e.g. disable menu
and set-size).
i can do this for GETs, with
window.open('link'....);
but not for POSTs.
help!
This is untested, but gives you the general idea.
function mySubmit() {
var newWin = window.open('','zaphod',...);
newWin.focus();
document.myForm.target = 'zaphod';
document.myForm.submit();
// optional reset
// document.myForm.target = self.name;
}
<form name="myForm" onSubmit="mySubmit();" action="..." method="POST">
....
</form>