Javascript help
Javascript help
- Started
- Last post
- 1 Response
- 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?
- vsc0
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'?