Sorry for long title, wasn't really sure how to say it simply.
Anyway, I am making a theme for a blog, and in this theme I am loading some pages in iframes. However, some of these pages are linked to from elsewhere.
So I need to detect when page A is loaded not in an iframe, and redirect to the homepage of my blog. But then I need to open page A inside an iframe on the homepage.
I honestly have no idea how to go about this, or whether it's possible... Is it possible?
(A simple "no that's not possible" is fine. I don't think I have access to any JS libraries or php, and from searching around those are what people have used. I've just got html, css, javascript.)