jcdevelopment
12-14-2009, 07:51 PM
I use a basic pop-up window code that i have used for many years. I probably need to update it, but i was wondering why it will work for every browser but IE8. Can anyone help?
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=600,height=400,left = 540,top = 325');");
}
<a href="javascript:popUp('/email/agent/aid/<?php echo $this->agent->pers_code?>')" >
can anyone see something that may cause the problem?
Thanks for any help!
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=600,height=400,left = 540,top = 325');");
}
<a href="javascript:popUp('/email/agent/aid/<?php echo $this->agent->pers_code?>')" >
can anyone see something that may cause the problem?
Thanks for any help!