2 Replies - 48915 Views - Last Post: 23 April 2008 - 12:08 PM

#1 WhiteFang   User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 108
  • Joined: 20-April 08

Make all links open in new tab?

Post icon  Posted 23 April 2008 - 11:04 AM

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
Is This A Good Question/Topic? 0
  • +

#5 skyhawk133   User is offline

  • Head DIC Head
  • member icon

Reputation: 1972
  • View blog
  • Posts: 20,425
  • Joined: 17-March 01

Re: Make all links open in new tab?

Posted 23 April 2008 - 11:59 AM

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

Was This Post Helpful? 1

#6 WhiteFang   User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 108
  • Joined: 20-April 08

Re: Make all links open in new tab?

Posted 23 April 2008 - 12:08 PM

View Postskyhawk133, on 23 Apr, 2008 - 11:59 AM, said:

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


thanks it worked a treat! btw, you missed out the / before > , ill let you off though :^:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1