Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Kakao on
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
put it in the template for your theme
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/
Thanks, I just added that
Thanks,
I just added that bit to themes/bluemarine/xtemplate.xtmpl and it is working.