Since you are writing code as a part of a string variable that needs to first be parsed and written as innerHTML before it is parsed as code, you need to escape the contained delimiters used here (as shown in red):
Code:
onclick="window.open (this.href,\'\',\'width=300,height=250\')
in the above excerpt from your array entry.
These delimiters need to be escaped because they are the same delimiters used to delimit the entire string. Otherwise, the script parser thinks that the entire string ends here:
Code:
leftrightslide[0]='<a href="https://ww . . . onclick="window.open (this.href,'
Bookmarks