Tuesday, January 25, 2011

How to break out of iframe by Javascript in masterpage?

How to break out of iframe by Javascript in masterpage?
    <script type="text/javascript">
        if (top != self) top.location.replace(location.href);
    </script>

No comments:

Post a Comment