Thursday, January 1, 2009

[jQuery] How to force a child page to open in iframe using jquery

Hi,
I have a WebPage on which i have an iframe inside which i open child pages . In one of the child pages following script is written

script type="text/javascript">
    if (self != top) {
    if (window.location.href.replace)
        top.location.replace(self.location.href);
        else
            top.location.href=self.document.href;
            }
 </script>


Which replaces my original url to its url and my page is gone ..
is there any way using jquery that i can stop this page from bursting my iframe.

Plz Help.

Thanks in advance
~abhi

No comments: