Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Frame | Q206 [ previous next ]

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

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>

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.