My site has been framed:

http://www.tutorialized.com/tutorial/Programming-for-Absolute-Beginners/...

I know how to use javascript to escape from a frame, something like this:

if (window.self != window.top) { top.location.href=location.href }

I have used it in other sites but I don't want to hack Drupal if a configuration already exists where I can make it always be the top frame. Does it exist?

Regards.

Comments

Harry Slaughter’s picture

you can add bits of javascript like that to the page template file that corresponds to the theme(s) you are using.

it will be something like themes/bluemarine/page.tpl.php

that really wouldn't be considered a hack.

that's the proper way to add custom javascript or html to your site.

--
Drupal tips, tricks and services
http://devbee.com/ - Effective Drupal

--
Devbee - http://devbee.net/

Kakao’s picture

Thanks,

I just added that bit to themes/bluemarine/xtemplate.xtmpl and it is working.