Button display dependant on parent window
<p>I have a webpage that can be accessed from 2 different areas, one navigates to the page and one opens a new window to the page. I'm trying to use the window.parent.location as a switch
to display either a "Back" for the navigated page or a "Close" for the new window.</p>

<p>Am I on the right path here, is there an easier way to do this?</p>

<p>All help appreciated</p>
