Click to See Complete Forum and Search --> : FELGALL coding html to open in new window


idahoone
10-06-2006, 12:52 AM
FELGALL “thank you for your reply <” target="blank"> to”
coding HTML so external links automatically open in a new window
as not to lose anyone who links out of your website.

where does <” target="blank"> fit it into the full code
<A HREF="http://www.mypage.com"><IMG SRC="image.gif" ALT="some text"></A>
& what word should be typed in where “blank” is ?

many thanks from 2nd day beginner

felgall
10-06-2006, 01:13 AM
Like this:

<A HREF="http://www.mypage.com" target="_blank"><IMG SRC="image.gif" ALT="some text"></A>

ray326
10-06-2006, 12:49 PM
And note that it's "_blank" not "blank". It may make a difference depending on the browser and what you're trying to do.

felgall
10-06-2006, 04:08 PM
_blank is a reserved term meaning create a new window.

There are a couple of other reserved terms you can use with target such as _self and _parent

Any other value used with target (eg. blank is considered to be the name of a window. If a window by that name is not already open then a new window will open. If a window by that name is already open then that window will be reused rather than opening another window.