![]() |
html question
Hi all,
if I want all the links on a page to open in a new window, whats the html code for that? currently, if someone clicks on a link on my site they leave the site to go to whatever they clicked. I'd like to set it up so that when they click something it just opens up in a new window. Thanks in advance for your help :upsidedow |
a href="url" target=new
|
Code:
<a href="http://www.smutx.net" target="_blank">text here</a> |
Thanks! do I have to enter that code for each individual link or is it something that I can just put at the top of the page and then every link automatically opens in a new window?
|
Use base target.
|
i've never used that base target.. seems rather simple, and easy to use. rafe, if you have alot of links u want openin in a new window, i'd definatly say go with that base target, well it wouldnt hurt if u only had three links u wanted to open in a new window, but it you just need one link or so, the target tag is the way which i use fequently. its also good for iframes and such if you name your frames/new windows.
|
Quote:
|
|
next time just google it
|
| All times are GMT -7. The time now is 07:47 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123