Hmmm, I should have been more specific. How about...
<if window opener is defined>
        show page as a normal popup
<if not>
        redirect to a a specific page. say www.domain.com

Thanks. :)

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 05, 2007 12:42 PM
To: CF-Talk
Subject: RE: Search Engines & the indexing of javascript popup windows


> Dave, the JS function to launch the new window is below.
> Would might code look like on the popup (child) page to do 
> this? I'm not a JS pro by any means. Thanks, Che.

The code would depend on what exactly you want as a result, of course, but
if you just wanted to conditionally hide the "close window" button, it might
look like this:

if (!window.opener) {
        document.getElementById('mybuttonname').style.visibility = 'hidden';
}

You could put this in a function, and call it using the onload event handler
of the body tag.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized instruction
at our training centers in Washington DC, Atlanta, Chicago, Baltimore,
Northern Virginia, or on-site at your location. Visit
http://training.figleaf.com/ for more information!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265826
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to