Forum Moderators: phranque

Message Too Old, No Replies

target="new" or target=_blank"

what's the difference

         

hannamyluv

6:02 pm on Jan 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I was reading in another thread a question about target="new" and I was just wondering, is there a difference between "new" and "_blank" for the target tag?

iamlost

6:22 pm on Jan 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Was doing an explanation and then found tedster already addressed question in depth with links!

[webmasterworld.com ]

keyplyr

11:49 pm on Jan 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



In addition to Tedster's accurate explanation, you may also use any unique name for your window, and will act just link target="_blank".

examples:
target"_new"
target"_small"

The advantage (or disadvantage) of this is that the browser will only accommodate this unique named window once. If another link is opened using this same name, the window will be replaced by this new one.

BTW - using the underscore helps to distinguish this name from other similar words on the page in hopes the browser does not get confused, which is not a pretty sight!