Posts: 33
Location: Toronto, Canada
|
Thank you for the replies.
I have a question on where to put the code. My script for the popup is on the main page calling for the popups. It looks like this:
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,men ubar=0,resizable=0,width=450,height=450,left = 640,top = 325');");
}
// End --> I added this code for closing, based on the code you gave me:
var popUp2;
function popwin(url) {
if (!popUp2.closed) popUp2.close();
popUp2 = window.open(url,'popwin','width=400,height=275');
popUp2.focus();
}
I get a script error when I put it in. Any suggestions as to where I am going wrong?
Thanks in advance for the help.
Taz
|