PDA

View Full Version : New Windows


Dark
03-07-2000, 07:47 AM
hi, does anyone know how I can get a link that is clicked to open in a different window, and not inside my frames so people have more room to see the site?

jalouda
03-07-2000, 11:44 AM
hi dark,
all you need to do is add the TARGET attribute to your A tag e.g:

<A HREF="cool.html" TARGET="new">cool link</A>

when you set target to new, the url you link to will open in a new window.

in case you are curious, to fill the original window completely with a link instead (ie just break out of frames to view the link), you use a similar trick:

<A HREF="cool.html" TARGET="_top">cool link</A>

so, use TARGET="new" to view link in a new window and use TARGET="_top" to view link in same window, but not in frames.

hope this helps,
jalouda

------------------
for anything and everything visit http://jalouda.homepage.com

Owen_MC_Evans
03-07-2000, 02:02 PM
Well looks like your question got answered.
A more popular target tag to use for a new window is _blank as this will open a new window each time the link is clicked whereas I believe the new target will mean that only one new window will open.
Glad to see Guides are helping out!
Owen

1423
10-25-2000, 07:32 AM
Hi!
If i want to open not just a one link in new window how this will happens!!Must i write for every link this html code or there is some html code that has an action on all!

-Thanks-
Ivan Petkov Paraskov