I have popup windows on my site that display large product
photos that have been indexed by search engines. The thing
is, when a customer is refered by a search engine by one of
these indexed popup windows pages, the page does not 'render'
like a pop up window if the customer was already
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.
script language=JavaScript
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint =
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
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
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
You could simply replace the contents of the conditional block with whatever
you want to do:
if (!window.opener)
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
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
://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
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.
An explicit comparison would probably work in both, then:
if
Nope. Oh well, it seems to work in all browsers except IE. That's better
than where I was before.
Thanks for your help.
~Che
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Friday, January 05, 2007 4:21 PM
To: CF-Talk
Subject: RE: Search Engines the indexing
Nope. Oh well, it seems to work in all browsers except IE.
This will work in both IE7 and Firefox:
if (window.opener == null || window.opener == undefined) ...
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
PROTECTED]
Sent: Friday, January 05, 2007 5:01 PM
To: CF-Talk
Subject: RE: Search Engines the indexing of javascript popup windows
Nope. Oh well, it seems to work in all browsers except IE.
This will work in both IE7 and Firefox:
if (window.opener == null || window.opener == undefined) ...
Dave
12 matches
Mail list logo