Hello,
I’m trying to get the code below to work, but no such luck:
var newsAry = new Array("news/040720.html");
for(i=1; i<=newsAry.length; i++) {
this["btn" + i].index = i;
this["btn" + i].onRelease = function() {
getURL("javascript:openNewWindow(" + newsAry[this.index - 1] + ",'newswin','height=400,width=450,toolbar=no,scrollbars=yes')");
}
}
I’m trying to get the ‘newsAry’ Array to work in the javascript getURL action. When I use a regular html page in there the page works just fine. Any ideas as to what I’m doing wrong?
Foo :rd: