Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple window.open() won't cascade 1

Status
Not open for further replies.

cc4mail

Technical User
Jan 8, 2002
47
US
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);
}
}
 
worked fine! It appears that all the window values are actually a string, and because a variable is contained in the string the variable has to be isolated?

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top