The problem is that in IE, I still get the Close Window button on the
indexed popup page that comes from Google instead of getting the hyperlink
to purchase it from 'MyDomain.com'. I'll try removing the escape slashes.

Also, I found this, maybe it will mean something to you.
http://www.shaftek.org/blog/archives/000300.html

~Che


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


> Dave, using your code, what I have below works in Firefox,
> but not IE. Any ideas? Thanks a bunch, Che.
> 
> <script language="JavaScript"><!--
> if (!window.opener) {
>       document.write('<a href=\"http://www.mydomain.com\";><span
> style=\"font-family: Verdana; font-weight: Bold;\">Purchase
> This Product at MyDomain.com</span></a>');
>       
> }
> else {
>       document.write('<form name=\"popupForm\"
> onSubmit=\"return closeWindow()\"><input type=\"image\" 
> src=\"images/b_CloseWindow.gif\"
> alt=\"Close Window\" border=\"0\"></form>'); } //--></script>

What exactly happens in IE? Does it fail to write, or does it write the
wrong thing, or does something else happen?

You don't have to escape your double quotes in a string delimited by single
quotes. That may well be the source of your problem.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:265864
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