Forums Archive Index > Cool free scripts > can't get links to open in a new window in newsticker
Date: 8 Apr 2005 4:11 pm
the links seem to work ok but open in the same window
Code:
['http://www.xxx.xxx,'- text text text11','_blank'],
i am following the instructions for the content
Code:
THE CONTENT - ['href','text','target']
and have put '_blank' as the target but the links still open in the same window
does anyoone know if i can also add a :;javascript link to the ticker so that i can control other behaviours
Date: 9 Apr 2005 4:18 am
You can make the links calls JS functions by adding the "javascript:" prefix and also setting "_self" for target. For instance:
['javascript:alert("test test")','JavaScript alert.','_self']
As for the problem you have with opening the links in a new window, I don't know what exactly happens- on theory it should function correctly when you have set "_blank" for target.
Can I take a look at some sample page?