Forum Moderators: open

Message Too Old, No Replies

close window and open another if it isn't open already?

how to determine if another window is open

         

metaphor

4:55 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



I find google is indexing some dynamically generated pages which carry only a js close command that kills the browser. In lieu of using meta noindex, nofollow for those php pages I'd prefer to check to see if the (normally) calling page is open and simply close the dynamic page if so, or open the calling page if not. I get the "window.close" part but the other is totally beyond me.

Problem page sample: <snip>

Usual calling page:
<snip>

(Sorry if this has been addressed a zillion times, but I didn't recognize the posts!)

[edited by: korkus2000 at 10:35 pm (utc) on Nov. 7, 2003]
[edit reason] No code reviews please [/edit]

hakre

8:21 am on Nov 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



take a look at the
document.opener
object.