Does adding a followin tag in the header section of an html document prevent the document from loading inside the frame? If so, why is anyone worried about Javascript methods?
<META HTTP-EQUIV="Window-target" CONTENT="_top" />
It seems that browsers no longer support the meta tag <META HTTP-EQUIV="Window-target" CONTENT="_top" />, they just ignore it. So, why do people worry about using JavaScript, as Gumbo suggested.
Better to use BASEelement instead:
BASE
<base target="_top">
. _top , .
_top
, , JavaScript:
if (top != self) { top.location.href = self.location.href; }
Source: https://habr.com/ru/post/1719308/More articles:Что такое компилятор командной строки? - compiler-constructionСобытие фокусировки IDE Selenium не срабатывает, если не активировано окно - firefoxЧтение GIT маркеров слияния - gitHow to convert Text to Wave using multi-threaded SAPI? - c ++double digits in C ++ - c ++LINQ VB how to select records with maximum date (highest date) - lambdaConditionally grouped histograms from my data set - rВозможно ли хранить информацию о строках базы данных в Active Directory? - databaseWCF Stream Length - c #Surely the Data Structures & Algorithms course is really helpful? - language-agnosticAll Articles