My problem is that I have two html files for example say 1.html and 2.html. The contents of the files are
1.html
It consists of the Iframe. The source of the Iframe is 2.html.
2.html
It is a sample html page.
My question is that I want to check whether the 2.html is loaded on an Iframe or loaded on a separate browser directly without putting it inside an Iframe. The checking has to be done from 2.html only.
Any suggestions friends.
Thanks in advance.
when loaded in iframe the window.parent points to the parent window, however when loaded in a separate window window.parent points to window itself: