I am trying to create popup windows with dynamic variable names and
then see if they exist or not.
For example, if I call the function like so openWin("2600", "2000") I
would like the function to create a window called
"win2600200 0". I have tried the following code (and many other
variations) but I cannot get it to work
function openWin(senderI D, recipientID)
{
//Create the window if it does not exist or it has been closed
if (typeof "win" + senderID + recipientID=="u ndefined" || "win" +
senderID + recipientID.clo sed)
{
"win" + senderID +
recipientID=win dow.open("popup .aspx","win" + senderID +
recipientID,"to olbar=no,menuba r=no,width=350, height=350");
}
if("win" + senderID + recipientID)
{
//Do something with the window
}
}
thanks,
Luis