HighDots Forums  

target="_blank" cannot open a new window

alt.html.tags alt.html.tags


Discuss target="_blank" cannot open a new window in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matt
 
Posts: n/a

Default target="_blank" cannot open a new window - 06-01-2004 , 03:09 PM






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 form
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, and
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!!

Reply With Quote
  #2  
Old   
Molle
 
Posts: n/a

Default Re: target="_blank" cannot open a new window - 06-13-2004 , 03:23 PM






Hello Matt,

If you make the target names other than _blank, let's say page2 for page2
and page 3 for page3 then alle the pages will open in a other window.

This works for me.

Try it

Molle


"Matt" <jrefactors (AT) hotmail (DOT) com> schreef in bericht
news:ba8a039e.0406011109.10b4f9b6 (AT) posting (DOT) google.com...
Quote:
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 form
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, and
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!!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.