HTML Question

olds

Elite Member
Mar 3, 2000
50,129
781
126
Can I add something to my HTML that will make links open in new windows? Or is that a user setting?
TIA
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Correct, but the world will be a better place if you use lowercase for your tag names and attributes. Uppercase is hideous and it goes against the latest html standards.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: kamper
Correct, but the world will be a better place if you use lowercase for your tag names and attributes. Uppercase is hideous and it goes against the latest html standards.

:thumbsup:
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: screw3d
BTW opening links in new windows is not an encouraged practice.. just so that you are aware :)

http://diveintoaccessibility.o...ening_new_windows.html">http://diveintoaccessibility.o...ening_new_windows.html</a>

Thanks for the link screw3d, discussion about web design semantics is always a good thing. Although that article made some good points, I'm gonna take the opposite view, for argument's sake.

First of all, you don't use the new window style unless you think your reader should see two windows. There is a good reason for it and a direct benefit to the normal user. The web designer who does it thinks about his target audience and what would make their experience on his site the best possible and choses the route he/she thinks best, which may be the new window. If it is the wrong choice, the designer suffers because his/her goal was to please the users.

I'd say if oldsmoboat wants a new window he should use target="_blank" because inconveniencing the vast majority of normal readers for the sake of a few different ones may not be a good idea. If a user has specific needs then he/she should be able to configure the browser to always open links in the same window.

That being said, if oldsmoboat decides that the reasons put forward in that article are more important than his reasons for wanting a new window, then, by all means, he should change it back.

Whoops, that was a short essay.
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
anyone know why target="_new" works also ? Strange that they would have 2 params that do the same thing.
 

LeetViet

Platinum Member
Mar 6, 2003
2,411
0
76
Originally posted by: rh71
anyone know why target="_new" works also ? Strange that they would have 2 params that do the same thing.

Well there's <small> <h6> (or was it 7?) and <font size="1"> :D
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
different link targets

for all others (eg: target="whatever"), clicking on the link will open the results in the window called "whatever". if it does not exist (eg: when clicked for the first time), a new window called "whatever" will be created.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: LeetViet
Originally posted by: rh71
anyone know why target="_new" works also ? Strange that they would have 2 params that do the same thing.
Well there's <small> <h6> (or was it 7?) and <font size="1"> :D
Because they have different semantic meanings. The whole point of the second half of this thread is that you shouldn't be designing pages only for the non-impaired IE user. Well, you could argue that anyone who uses IE has an implicit impairment but... :p

And if you use <font> tags you should be taken out back and beaten.
 

olds

Elite Member
Mar 3, 2000
50,129
781
126
The reason I wanted it to open in a new window is because the users are not all computer literate and I didn't want them to lose the first window.
I'll re-think it though.
Thanks again.