english/libraries/joomla/html/html/behavior.php
/**
	 * Break us out of any containing iframes
	 *
	 * @return  void
	 * @since   11.1
	 */
Break us out of any containing iframes
@return  void
@since   11.1
Break us out of any containing iframes @return void @since 11 . 1
public static function noframes($location='top.location.href')
	{
		static $loaded = false;
		if ($loaded) {
			return;
		}
		self::framework();
		$js = "window.addEvent('domready', function () {if (top == self) {document.documentElement.style.display = 'block'; } else {top.location = self.location; }});";
		$document = JFactory::getDocument();
		$document->addStyleDeclaration('html { display:none }');
		$document->addScriptDeclaration($js);
		JResponse::setHeader('X-Frames-Options', 'SAME-ORIGIN');
		$loaded = true;
	}
public static function noframes ( $ location = 'top.location.href' ) { static $ loaded = false ; if ( $ loaded ) { return ; } self :: framework ( ) ; $ js = " window.addEvent('domready', function () {if (top == self) {document.documentElement.style.display = 'block'; } else {top.location = self.location; }}); " ; $ document = JFactory :: getDocument ( ) ; $ document -> addStyleDeclaration ( 'html { display:none }' ) ; $ document -> addScriptDeclaration ( $ js ) ; JResponse :: setHeader ( 'X-Frames-Options' , 'SAME-ORIGIN' ) ; $ loaded = true ; }
Break us out of any containing iframes
 @return  void
 @since   11.1
Break us out of any containing iframes @return void @since 11 . 1
// Only load once // Include MooTools framework