PDA

View Full Version : Target _blank vs _new?


Kay
01-31-2003, 05:48 PM
What's the difference?
They both open in a new window - the back button is greyed out, and the user needs to close the new window in order to get back to the site that he/she came from.
Any pro's and con's for either of them?
Out of habit I use _blank.
It's no big deal, it just bugs me that I can't figure it out for myself.

justame
01-31-2003, 06:22 PM
kay...
"quote...the back button is greyed out...endquote"
thattts just a because® there isss no 'back' ...aka you just a opened® it ...therefore there is nooo history...

justame
01-31-2003, 06:27 PM
kay...
just a ps®...
ya mighttt wanna read this though tooo...

http://www.codingforums.com/showthread.php?s=&threadid=13544

ronaldb66 01-27-2003 04:08 AM
the four general target values are _blank, _parent, _self and _top; _new isn't and will only open a new window named "_new" provided that it doesn't exist yet, falling under the "any name" cases.

pb&j
02-01-2003, 05:14 AM
So then "_new" would be just the same as calling a target "George". It is considered as just a regular name. If it does not yet exist, then a window will be created and the link opened into it. If there is a window with that name already, then a new link with the same name will use that same window.

"_blank" will open a new window for the link each time, it won't reuse a window.

Kay
02-02-2003, 03:42 AM
Thanx - Got it.
How about _blank vs. _top?

I guess that's what I meant in the first place, my syntax is off sometimes :o

My excuse is that english is not my native language.

tempest1
02-02-2003, 04:20 AM
Yea yea yea, thats the sad thing about web design though its programming can only be done in english to my knowledge. I have nothing useful to say here lol, just this.

justame
02-02-2003, 04:37 AM
kay...
_blank...opens just a new® browser window...

_top...opens in the same 'window' as ya just a clicked® from...aka parent...n' ifin' youre in frames??? it just a replaces® the framed page...

Kay
02-03-2003, 03:07 AM
Guess we're moving in the right direction.
I'm maintaining a site that depends on frames to have the nav bar functional. (Don't ask me why, it's a pain - I didn't design it, I just do updates).
Every link that is not a part of the website has to be out of the frames, or the menu doesn't work any more.
Either one works for me, so I'm sticking to _blank.
Thanks for the clarification.