This demonstrates a page that is aware of it's environment.

This link should appear all the time...
(It is independent of the frame/no frame choice.)

OPEN index.htm IN SELF

If this is a standalone page, unenclosed by frames, there will be 2 links below.
If this page is opening as a frame, there will be only a single link below.