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

Q293 How do I detect whether the document is in a frame?

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

<script language="JavaScript"><!--
if (self != top)
    alert('In a frame');
else
    alert('Not in a frame');
//--></script>

©2013 Martin Webb

ArticlesFAQsGamesFeedback

FOLDOCRFCsInstant JavaScriptSoftwareBooksJavaScript Programmer's ReferenceAboutTop