T
The Natural Philosopher
why doesnt this work?
<script type="text/javascript" language="JavaScript">
var child1;
function show_order(id)
{
if(!child1 || child1.closed==true) // never bin opened or been closed
child1=window.open("sales_edit.php?nobanner=yes&id="+id,"_blank",
"height=600,width=1000,scrollbars=no,location=no,menubar=no,toolbar=no,status=no,resizable=yes");
else child1.location.replace("sales_edit.php?nobanner=yes&id="+id);
child1.focus();
}
</script>
Sure, it opens a new window, but never reuses the same one!
<script type="text/javascript" language="JavaScript">
var child1;
function show_order(id)
{
if(!child1 || child1.closed==true) // never bin opened or been closed
child1=window.open("sales_edit.php?nobanner=yes&id="+id,"_blank",
"height=600,width=1000,scrollbars=no,location=no,menubar=no,toolbar=no,status=no,resizable=yes");
else child1.location.replace("sales_edit.php?nobanner=yes&id="+id);
child1.focus();
}
</script>
Sure, it opens a new window, but never reuses the same one!