[SOLVED] Checking if blog is inside a frame
I run my Wordpress/Atahualpa blog inside a frame like this
<frameset> <frame src="other.html" name="other" id="other"> <frame src="blog/index.php" name="blog" id="blog"> </frameset> If someone accidentally opens the blog without a frame by going directly to blog/index.php I want to redirect to ..\index.html frameset. In other.html I have this piece of javascript in body's onload if (self == top) { self.location.href = '../index.html'; return; } Where should I put that with Atahualpa? |
try ato->Add HTML/CSS Inserts->HTML Inserts: Body Tag
|
Works like a charm. Thanks!
|
All times are GMT -6. The time now is 03:03 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.