irt.org Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt

Q206 A site that uses frames displays my site in a frame, is there a way to keep my site 'on top'?

You are here: irt.org | FAQ | JavaScript | Frame | Q206 [ previous next ]

Try:

<html>
<head>
<script language="JavaScript"><!--
if (self != top) {
    if (document.images)
        top.location.replace(window.location.href);
    else
        top.location.href = window.location.href;
}
//--></script>
</head>

<body>
...
</body>
</html>

©2013 Martin Webb

ArticlesFAQsGamesFeedback

FOLDOCRFCsInstant JavaScriptSoftwareBooksJavaScript Programmer's ReferenceAboutTop