Hi,
I'm sorry if this has been asked before. I'm a designer and occasional
javascript hacker, not a javascript writer. I cannot believe I have
spent over 4 hours searching for this on Google and nothing I have found
solves this silly little problem.
Background
----------
I have been assigned a poorly-designed site to SEO. It has a number of
popup pages which the client refuses to remove.
The Problem
-----------
These popup pages have already been indexed by Google and when they are
clicked on from a page of results they obviously display with no
navigation menu because they are designed to be standalone popups.
The Solution
------------
If the popups are called from the site's home page (the only page from
where these popups are called) then they display as above. If these
popups are called from anywhere else (e.g. a search result on Google)
then the page should either refresh using self.location.h ref to the
site's home page or maybe use document.write to include a link back to
the site's home page.
I have determined that I need to name the parent.window and that I need
to detect that name when the popup is loaded. But I cannot, cannot find
any tutorial on how to achieve this, yet there are millions of popup
pages in sites that must have this very problem. If anybody could help
me with this I would be very grateful.