Problem with frames...
I want to open two web pages in a single window ,so i am using frames . now it opens fine for some pages but for few it opens in whole window and i am losing frames .can anyone plz explain why and how to open web page in particular frame only. Just see this one side i have yahoo and other google now even if i navigate through google its on right side i will not lose my frames but just click any link in yahoo frames r lost...
<HTML>
<HEAD>
<TITLE>MyFramesPage</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
defaultsubpage="http://www.google.co.in";//right side page
if (location.search) {subpage=location.search.substring(1)}
else {subpage=defaultsubpage}
if (subpage.indexOf('&&&')>=0) {
prefix=subpage.substring(0,subpage.indexOf('&&&'))+"://";
suffix=subpage.substring(subpage.indexOf('&&&')+3,subpage.length);
subpage=prefix+suffix;
}
// -->
</SCRIPT>
</HEAD>
<SCRIPT>
document.write('<FRAMESET COLS="50%,50%">');
document.write('<FRAME SRC="http://www.yahoo.com" NAME="nav">');//left side page
document.write('<FRAME SRC="'+subpage+'" NAME="main">');
document.write('</FRAMESET>');
</SCRIPT>
</HTML>
Message was edited by:
uk0102

