Seemed simple enough,
based on checkbox.checked, for loop opens various array URL's in new windows.
They do not cascade using increment c, but load directly on top of each other.
What have I done wrong?
var c = 0
for (var i=30; i<47; i++){
var winName = "win"+ i;
var c = c + 20
if (document.form3.elements[i-30].checked) {
winName = window.open(SourceLoc,"","toolbar=no,scrollbars,width=840,height=560,left=c,top=c");
// window.focus(winName);
}
}
based on checkbox.checked, for loop opens various array URL's in new windows.
They do not cascade using increment c, but load directly on top of each other.
What have I done wrong?
var c = 0
for (var i=30; i<47; i++){
var winName = "win"+ i;
var c = c + 20
if (document.form3.elements[i-30].checked) {
winName = window.open(SourceLoc,"","toolbar=no,scrollbars,width=840,height=560,left=c,top=c");
// window.focus(winName);
}
}