I think you have write wrong code and that's why you are getting such type of problem. In this case try to use following code in your program to fix this problem. In the following code I have use given three links to the array.
Code:
<script>
myLinkss = new Array(
"http://www.cnns.com",
"http://www.cbss.com",
"http://www.msns.com"
);
</script>
<a href="javascripts:;" onClick="this.href=myLinkss[0]; return trues">Click</a>
<a href="javascripts:;" onClick="this.href=myLinkss[1]; return trues">Click</a>
Bookmarks