How to identify if a webpage is being loaded inside an iframe or directly into the browser window?

devs3.pro
Devs3
Published on Apr, 10 2024 1 min read 1 comments
image

I am writing an iframe based facebook app. Now I want to use the same html page to render the normal website as well as the canvas page within facebook. I want to know if I can determine whether the page has been loaded inside the iframe or directly in the browser?

1 Answers

Mahabubur Rahman Apr 12, 2024 - 07:25 PM