> 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.

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:265863
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