Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,382 Programmers. There are 1,382 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Make all links open in new tab?

 
Reply to this topicStart new topic

Make all links open in new tab?

WhiteFang
post 23 Apr, 2008 - 11:04 AM
Post #1


New D.I.C Head

*
Joined: 20 Apr, 2008
Posts: 32



I know its possible to make single links open up in a new tab by using the relevant code, but in there a script that would make all links on the page open in new tabs, as there is quite a lot of links on my page?

Thanks for the help
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


skyhawk133
post 23 Apr, 2008 - 11:59 AM
Post #2


Big Money... No Wammies!

Group Icon
Joined: 17 Mar, 2001
Posts: 13,550

Put this at the top of your page:
HTML
<base target="_blank">
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

WhiteFang
post 23 Apr, 2008 - 12:08 PM
Post #3


New D.I.C Head

*
Joined: 20 Apr, 2008
Posts: 32

QUOTE(skyhawk133 @ 23 Apr, 2008 - 11:59 AM) *

Put this at the top of your page:
HTML
<base target="_blank">



thanks it worked a treat! btw, you missed out the / before > , ill let you off though icon_up.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 03:38AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month