Thread: Page Rank
View Single Post
Old 2008-02-24, 01:33 PM   #1
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Close. But not exactly.

The four "valid" values for the target attribute are _blank, _parent, _self and _top.

Aside from those four, which do very specific things, like opening a new, blank window for example, you can also put "new" or most anything else you want in there and you'll get a new window too in most cases.

The caveat is that what really happens is that you actually create a new window AND name it "new" (or whatever word you put in the target attribute's value).

Of course if you use "new" all the time, it's possible the surfer may already have a new window named "new" opened and what will happen is that the link will now load the contents into that already opened window since you've told it that that's the target you want it to use.

If you use "_blank" you'll always get a new window.

And don't forget that leading underscore character or you'll just be creating a new page AND naming it "blank" similar to what happens if you use "new" as the target.

HTH
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote