Using Javascript to add target attribute to links

Discussion in 'Javascript' started by Gerald Shastri, Feb 19, 2007.

  1. Hi,

    I have a page which is being generated by a CMS and I can't control
    the links which are being outputted. I want to add a target =
    "_parent" attribute to all the links on my page using javascript. Can
    anyone tell me how to do it.

    Thanks a lot.

    Gerald.
    Gerald Shastri, Feb 19, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DaMoe
    Replies:
    6
    Views:
    21,130
    praveenbattula
    Jun 26, 2010
  2. data64

    Re: Links and target

    data64, Apr 3, 2004, in forum: HTML
    Replies:
    2
    Views:
    373
    Rob McAninch
    Apr 3, 2004
  3. Rich Bradshaw
    Replies:
    25
    Views:
    1,113
    Beauregard T. Shagnasty
    Jun 23, 2007
  4. Chris Marsh

    Adding "target" Attribute To All Links

    Chris Marsh, Dec 11, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    343
    Duy Lam
    Dec 11, 2007
  5. mohit
    Replies:
    0
    Views:
    554
    mohit
    Jan 23, 2008
Loading...

Share This Page