Programmatically determine whether a window is standalone or orphaned
问题 I have a need to figure out whether a window was opened as a standalone vs. whether it was orphaned. Let me illustrate what I mean. Let's say I have two ASP pages that I'll call PARENT.asp and CHILD.asp. Additionally, there is a redirect page that I'll call CHILD-REDIRECT.asp. When a certain button on CHILD.asp is clicked, it redirects to CHILD-REDIRECT.asp, which includes client-side Javascript code that needs to run a certain way, depending on whether or not it has a parent (based on window