Iframe Issue

View: New views
1 Messages — Rating Filter:   Alert me  

Iframe Issue

by kerepuki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey people, just new to the forum so still trying to find my way around.

I have a problem. Hence the post.

I have a frameset on a clients website which is not behaving the way it should. It opens a new frameset inside itself therefore doubling up on the navigation items.

I have managed to fix the problem with some reload code but now I cannot use the back button on my browser. This is really starting to get to me as the frameset acts correctly in IE6 but not in IE7 or Firefox.

If anyone knows how to be able to fix this issue that would be much appreciated.

Below is the code I am using. If there is more information needed I will try to provide.

<script language="JavaScript" type="text/javascript">
        function breakout_of_frame()
        {
                if (window.top.location != parent.location)
                        window.top.location.href = parent.location;
        }
</script>
</head>

<body onload="breakout_of_frame();">
     
       content

load new frameset

</body>

</html>