I found some JS. See below. Its kinda working. When I click on my link I can 
see that the popup window goes behind my main window but when it open my other 
print template which has the code to open the print dialog box the popup that 
was once behind now appears in front on my main window but behind the print 
dialog. It doesn't stay behind. Why?


        <InvalidTag>
        <!--
        function openPopup() {
                var x=-30;
                var y=-60;
                if (document.layers) {
                        x=x+(window.outerWidth-100)/2;
                        y=y+(window.outerHeight-100)/2;
                }
                else {
                        x=x+(screen.Width-100)/2;
                        y=y+(screen.Height-100)/2;
                }
                if (x<0) x=0;
                if (y<0) y=0;
                var 
w=window.open("file-tracking-print.cfm","print","top="+y+",left="+x+",width=100,height=100,location=0,menubar=0,toolbar=0,status=0,resizable=0,scrollbars=0");
                w.blur();
                return;
        }
        //-->
        </script>


> <snip /> 
> 
> > Question...Is there a way to have the popup window to popup "behind" 
> 
> > or "off the screen" so the user doesn't see it?
> 
> In your print.cfm file, try invoking window.blur() to remove focus 
> from the current window.  Be careful with pop-ups though-- you might 
> trigger the adblock feature of your browser. ;)
> 
> For more info, please refer to the window object in your JavaScript 
> reference.  You might also find the methods window.focus() and window.
> moveTo() useful.
> 
> Regards,
> 
> 
> [ simon.cpu 
]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1004
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to