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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Target attribute not doing what my book says it should

Status
Not open for further replies.

rlingen

Technical User
Dec 6, 2000
41
CA
I want to have a link open in a second browser window (not frame). Then when I go back to window #1, choose another link from the list, I want it to open in Window #2 again (and not ANOTHER new window). In other words, I want a list of links in window #1 and want them all to open in window #2.

My favorite reference "Web design in a nutshell" says to use:
Code:
<A HREF=&quot;[URL unfurl="true"]http://www.mysite.com/&quot;[/URL] TARGET=&quot;display&quot;>...</A>
i.e. naming the second window &quot;display&quot;. This works perfectly with Netscape, but IE 5.0 creates a new window for every link used, even when the first &quot;display&quot; window is still open.

Is there a fix, or is this another annoying shortcoming of IE ?

Roy
 
Did you name the 2nd windown display.html?? the target will find the display and open the page in that window... I have not failed; I merely found 100,000 different ways of not succeding...
 
did you NAME your window in the frameset?

ie:

<frame src=display.html name='display'>

???
 
Sorry, you guys are both missing the point. There is no frameset, I'm not using frames. The pages that are being opened are not necessarily my pages - they could be pages on another site - I have no control over the content. The links that are being opened could be anything.

I repeat that Netscape does this exactly according to the &quot;textbook&quot; I have. If I use TARGET=&quot;_blank&quot; , it opens a new browser window each time, but if I use TARGET=&quot;anyname&quot; it will open a new browser window the first time, but then will direct any other links with that target name to the same browser window.

IE 5.0 treats every TARGET=&quot;anyname&quot; as though it were a TARGET=&quot;_blank&quot; , i.e. it opens ANOTHER new window each time.

Roy
 
Check out the window.open-thingy - If i'm not mistaken you can name your window, which should do the trick...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top