submit the form and open new window problem

J

Joe

In the following code, page1.asp is inside the frame of main.html.
When the user click submit button in page1.asp, it will submit the for
and open a new window called page2.asp. When the user clicks submit
button on page2.asp, I expected to open a new window called page3.asp
Unfortunately, it just open page3.asp in the same window as page2.asp, an
now page2.asp is gone.

However, if I just open page1.asp, and begins from there, it is fine
I think this is because page1.asp is put inside the frame.

========= main.html =====================
<frameset><frame src="page1.asp"></frameset

================== page1.asp =============

<form action="page2.asp" target="_blank"

================== page2.asp =============

<form action="page3.asp" target="_blank"

Any workarounds?? Thanks!
 
A

Aaron [SQL Server MVP]

Check the browser setting, maybe "reuse windows for launching shortcuts"...
not something you can control from ASP (and really isn't even an ASP issue
at all, I bet you can reproduce with simple HTML files).
 

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,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top