I am writing an iframe based facebook app. 我正在寫一個基於iframe的Facebook應用程序。 Now I want to use the same html page to render the normal website as well as the canvas page within facebook. 如今,我想使用相同的html頁面來呈現普通網站以及facebook中的畫布頁面。 I want to know if I can determine whether the page has been loaded inside the iframe or directly in the browser? 我想知道是否能夠肯定頁面是否已在iframe中加載或直接在瀏覽器中加載? html