Forum Moderators: phranque

Message Too Old, No Replies

target=" blank" or not to " blank"

         

tonynoriega

8:35 pm on Jun 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



trying to catch up on whats the most user friendly these days...

shoul i still use target="_blank" or use a javascript to open a new window?

i like both, but is one valid and the other not?

jimbeetle

9:03 pm on Jun 10, 2008 (gmt 0)

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



It was deprecated but is making a comeback in HTML 5.

bill

5:21 am on Jun 11, 2008 (gmt 0)

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



How are they handling this in HTML 5? It's been tough working around the lack of a target in some circumstances. I've tried to stay away from them because they were deprecated.

vincevincevince

6:01 am on Jun 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Would be great if we could have target="_tab" and target="_sidebar" (etc.)

webfoo

3:16 am on Jun 12, 2008 (gmt 0)

10+ Year Member



I've used target="_blank" for many years, and never had a problem. I can't believe that targets were deprecated.

With JavaScript, the issue is whether or not the user supports it. The user could have JavaScript turned off, or a pop-up blocker.

Perhaps you could derrive a clever combination of the two? If you do, please share!

Vince, I'm right with you on target="_tab". Up for suggesting this to the W3C?

Demaestro

3:29 am on Jun 12, 2008 (gmt 0)

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



The advantage with opening a window with JS is that you can close it from the window that opened it... if you use the target=_blank then you have no more control over that window from the parent window.

So I have always used that as my guide... if I need to further close or control the child window with the parent I use Js... if I don't care about what the user does with it after it is open the I use target.

phranque

8:07 am on Jun 12, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



i thought you could name the target anything so it should be possible to close that named window.