Wallykid
07-24-2003, 02:24 PM
function popUp(URL) {
day = new Date();
id = day.getTime();
alert(id);
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=200');");
}
This is a popup window script. However, i do not understand why we are using the eval() method i guess thats what it is. And why are we using "page" + id+" ....what does that do?
Can someone please let me know? Thanks.
day = new Date();
id = day.getTime();
alert(id);
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=200');");
}
This is a popup window script. However, i do not understand why we are using the eval() method i guess thats what it is. And why are we using "page" + id+" ....what does that do?
Can someone please let me know? Thanks.