I'm presently attempting to display another-party website within an iFrame with an internal website. Both are situated on a single second-level domain.

The 3rd-party website uses some JavaScript script designed to use top and window.the top to the mention of current window.

Could there be any reason behind this except to avoid the scripts operate in an frame?

The 3rd-party really stated they'd offer the exhibiting from the website within an iframe.

Could there be every other JavaScript related problems when viewing an internet site within an iFrame besides a reference with top?

Thanks ahead of time.

There's not one other reason behind using top rather than bother sites which are framework them.

Possibly it's legacy code which had the particular code within the frameset html.

Other conditions with iframes might be navigation using back and forward buttons and access refused when utilizing a window.xxx statement