Click to See Complete Forum and Search --> : target="???"


David Harrison
04-16-2003, 02:36 PM
I have several links to someone else's site and and I want to opne them all in different windows, up to now I've just been putting target="new1", target="new2" etc.
Is there another way of doing this?

khalidali63
04-16-2003, 02:44 PM
target="new1"...
might have worked,however the valid target attribute values are

target = "_blank"
target = "_parent"
target = "_self"
target = "_top"

you need to use
target = "_blank" to open a new window

Hope this helps

Cheers

Khalid

David Harrison
04-16-2003, 02:47 PM
Thanks, it was a simple question, but I'd never needed to open a new window from a link before.

DrDaMour
04-16-2003, 02:47 PM
when/why did they get rid of target="_new", i've used that code for a while now wihtout realizing it is defunct

David Harrison
04-16-2003, 02:50 PM
I did try _new because it seemed familiar some how but it didn't work so I was stuck.

khalidali63
04-16-2003, 03:31 PM
Originally posted by DrDaMour
when/why did they get rid of target="_new".....
As far as I know, target="_new" has never been a valid attribue for anchor tags

Cheers

Khalid

DrDaMour
04-16-2003, 03:36 PM
it was in html 3.0, but it seems what the w3 decided it was dumb to have _new but _blank wasn't dumb. Explain that? Anways i guess it's been out of service for 3 years now.

khalidali63
04-16-2003, 03:38 PM
I agree,because before HTML 3.02 there wasn't even a target attribute at all..for anchor element

Khalid