Skip to main content

Javascript help 11 Response

Last post: 2 years, 1 month ago | Thread started: Sep 8, 06, 3:22 a.m.

RespondNew TopicDisable Images

  • fifty50

    I wanted a JavaScript for my blog which would automatically open external links in a new window so I didn't have to add the target="_blank" tag to every link.

    I found this:
    http://www.serve.com/apg/worksho…

    But after using the JavaScript on my site, any href tag wrapped around an img will not open the link in an open window, but rather open a blank window. It seems this JavaScript only works on text links. Can anyone fix this?

    Sep 8, 06, 3:22 a.m. – Permalink
  • vsc

    i'm not sure you can have that. you have to add something in the A tag, even if it is an 'onclick' trigger. so you might as well use 'target'?

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earSep 8, 06, 3:42 a.m. – Permalink

Login or Register to respond to this

Skip to main content