L
lrlebron
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
"win26002000". I have tried the following code (and many other
variations) but I cannot get it to work
function openWin(senderID, recipientID)
{
//Create the window if it does not exist or it has been closed
if (typeof "win" + senderID + recipientID=="undefined" || "win" +
senderID + recipientID.closed)
{
"win" + senderID +
recipientID=window.open("popup.aspx","win" + senderID +
recipientID,"toolbar=no,menubar=no,width=350,height=350");
}
if("win" + senderID + recipientID)
{
//Do something with the window
}
}
thanks,
Luis
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
"win26002000". I have tried the following code (and many other
variations) but I cannot get it to work
function openWin(senderID, recipientID)
{
//Create the window if it does not exist or it has been closed
if (typeof "win" + senderID + recipientID=="undefined" || "win" +
senderID + recipientID.closed)
{
"win" + senderID +
recipientID=window.open("popup.aspx","win" + senderID +
recipientID,"toolbar=no,menubar=no,width=350,height=350");
}
if("win" + senderID + recipientID)
{
//Do something with the window
}
}
thanks,
Luis