Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FORM to another window...?

Status
Not open for further replies.

blekfis

Programmer
Oct 19, 2001
38
SE
Is it someway possible to have a FORM that opens in another window? Something like this (note the 'target'):

<form method=&quot;POST&quot; action=&quot;nextPage.asp&quot; name=&quot;myForm&quot;>
<input type=&quot;hidden&quot; value=&quot;SomeValue&quot; name=&quot;hidValue&quot;>
<a href=javascript:document.forms.myForm.submit() target=&quot;_blank&quot;>SomeValue</a>
</form>

/N!cklas
 
Why don't you write an additional html file that holds this form an call this file instead?

What is the idea behind your code? What exactly do you want to do??

patrick.metz@epost.de
 
yes there is. but i seem to have forgotten it.
try this:
<script>
function NewPage()
{
document.myForm.action=&quot;nextPage.asp&quot;
document.myForm.target=&quot;_blank&quot;
}
</script>

try calling this function in a button...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top