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!

New windows on form submit

Status
Not open for further replies.

iSeriesCodePoet

Programmer
Jan 11, 2001
1,373
US
Hello all,

I have a form that I use to submit information to a servlet. This opens in a new window right now and works. I use 'target=&quot;_blank&quot;' on the '<form>' tag. However, we would like to control the window that opens, kind of like you can with JavaScript. Is there any way to do this with as little (or at least standard) JavaScript. Mike Wills
AS400 Programmer
[pc2]

Please, if you find my post useful, let me know. [thumbsup2]
 
Instead of submitting to a new window and then displaying the contents, why don't you submit the contents and then have the javascript in that page open up the new window and display the page? If you don't want to leave the page, open the new window how you are, and in there use javascript to open a new window and close the opened one. If you need help on how to do this, post back here.

You can change the size and where the new window is placed, by putting these in the new window:
self.resizeTo(10,300);
self.moveTo(53,293);
but you can't take off the toolbars and stuff the way you are doing it.

Rick if(($question==&quot;has been bugging me&quot;
AND $answer==&quot;fixed the problem&quot;) OR $answer==&quot;really good post&quot;){
print(&quot;Star&quot;);
}else{
print(&quot;Thanks.&quot;);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top