Checks if called within a frame. Only works in browsers! If the current window has a parent or top properties that refer to another window, returns true. If trying to access top or parent throws an error, returns true. Otherwise returns false.
parent
top
false
Checks if called within a frame. Only works in browsers! If the current window has a
parentortopproperties that refer to another window, returns true. If trying to accesstoporparentthrows an error, returns true. Otherwise returnsfalse.