I have this 'latest news' rss feed on my site. Can I make it open in a new browser?

Discussion in 'JavaScript' started by newbiesiteguy, Feb 9, 2006.

  1. #1
    <script language="JavaScript" src="http://z.about.com/6/js/b.txt?s=weightloss"></script>
    <script>ShowHeadlines(10)</script>

    I have this simple script on my site to get the latest headlines from about.com

    If possible, I want to make it so the target it _blank , so that they do not leave my site.
     
    newbiesiteguy, Feb 9, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you parse the feed using php then you can write a regular expresion to insert the target=blank into each link.
     
    mad4, Feb 12, 2006 IP
  3. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #3
    Your RSS aggregator may have a switch to add it to the urls. CARP does.
     
    noppid, Feb 12, 2006 IP