How to make sure frames are present

i am trying to open two web pages in a single window , but while browsing i am not able to keep my frames , when i press some links the frames r lost. What should i do to keep my frames in place and open pages without losing any frames

i have used all these scripts

<script language="javascript">

if(self.location==top.location)self.location="main.html?top.html";

</script>

but not working .

sorry if i palced in wrong fourm.

[482 byte] By [uk0102a] at [2007-11-26 16:32:39]
# 1
You can check with a HTML / Javascript forum for a solution.Provide them more details about your HTML code, otherwise they won't understand where the problem is.
appy77a at 2007-7-8 22:57:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...