You are here: irt.org | FAQ | JavaScript | Frame | Q1352 [ previous next ]
Try the following which works on JavaScript 1.1 enabled browsers:
<script language="JavaScript1.1"><!-- var topFrame = ''; function framed() { alert('framed'); return true; } function isFramed() { topFrame = ''; window.onerror=framed; topFrame = top.location.href if (topFrame.indexOf('http://www.mydomain.com') > -1) { // not framed } } isFramed(); //--></script>