SilverLining

msg:3091389 | 10:27 am on Sep 21, 2006 (gmt 0) |
Just to expand on this... It also does not work in Firefox on the Mac. The JavaScript file is called from within the head section of the main page and I have tried copying the external JavaScript code into the page (as I'm aware that JS sometimes only works when it is on the page, instead of in a seperate file) and that doesn't work either. Comments appreciated.
|
kaled

msg:3091450 | 11:49 am on Sep 21, 2006 (gmt 0) |
Try using the standard array Links instead of calling getElementsByTagName(). However, I doubt that is the cause of the problem. You need to break up the code and use alert() to find out where it's going wrong. However, if Safari supports it, try either turning on error reporting or opening a javscript console to (view error messages). I've never used Safari but it should support one of these. It's also possible that the code is fine but you need to change a setting on Safari. It might even be doctype-related, maybe. Kaled.
|
penders

msg:3091481 | 12:08 pm on Sep 21, 2006 (gmt 0) |
You could try changing: anchor.target = "_blank"; To:
anchor.setAttribute("target","_blank"); Just a thought?!
|
spander

msg:3091483 | 12:10 pm on Sep 21, 2006 (gmt 0) |
target="_blank" works fine for me on a Mac in both Safari and Firefox, and it always has. Must be something local to your system.
|
SilverLining

msg:3092749 | 10:57 am on Sep 22, 2006 (gmt 0) |
Thanks for all your responses. Neither of the suggestions worked, however I played around with the JS in the header sections and today it's fixed. Sometimes it's good to sleep on "stuff"...
|
|