Link to home
Start Free TrialLog in
Avatar of wzhu58
wzhu58

asked on

HTML Frames

I want to make a home page (index.html) with two choices - English and Chinese.
After enter English or Chinese, the pages will go to Frames.
Under English, I have upper frame(upper_frame.html), left frame (left_eng.html), and main frame (open_eng.html).  Under Chinese, it is the same structure (upper_frame_chinese.html, left_chinese.html, and open_chinese).  The left frames works as guide.  the upper frames display some info.  The main frames are my main pages.  

I want to be able to go back to the home page (index.html) by select the home page link in the upper frames and left frames.   The problem is that when I select the home page link in the upper frames or left frames, the home page is displayed only in the upper frames or left frames but the other old frames are not cleared.  How can I get back to my home page and clear all the old frames at the same time.

Below are my html files.

index.html
<html>
<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
      <TABLE WIDTH = "100%" HEIGHT = "50%" BGCOLOR = "#ffffff">
            <tr>
                  <td width="25%" height="30%"><a href="english.html" style="border-style: solid; border-color: #800080"><font face = "Arial" size = "8" color = "#0000FF">English</font></a></td>
                  <td width="30%" height="30%"><a href="chinese.html" style="border-style: solid; border-color: #800080"><font face = "Arial" size = "8" color = "#0000FF">Chinese</font></a></td>
            </tr>
      </TABLE>
</BODY>
</html>

english.html

<html>
<frameset rows="10%,90%" frameborder = "no">
      <frame src="upper_frame.html" scrolling = "no">
      <frameset cols="185, *" frameborder = "no">
            <frame src="left_eng.html">
            <frame src="open_eng.html" name="showframe">
      </frameset>
</frameset>
</html>

left_eng.html

<br><b><font face="Arial" size ="2"><a href = "contact_us.html" target ="showframe">English Contact us</font></a></b>
      <br><b><font face="Arial" size ="2"><a href = "open_eng.html" target ="showframe">English Home</font></a></b>
      <br><b><font face="Arial" size ="2"><a href = "index.html">Home Page</font></a></b>

upper_frame.html

<HTML>
<BODY>
<TABLE WIDTH = "100%" HEIGHT = "2%" BGCOLOR = "#ffeeff">
      <tr>            <td valign = "middle" align = "center" width = "35%" height = "100%" bgcolor = "#3ea1cc">English Upper frame&nbsp;&nbsp;&nbsp;&nbsp;<A href = "index.html"><b><font face="Arial" color="#544C4C" size="4">www.goldensourceusa.com</font></b></a></td>
      </tr>
</TABLE>
</BODY>
</HTML>

open_eng.html

<HTML>
<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<TABLE WIDTH="800" ALIGN="center" NAME="outertable" ID="outertable" >
                  <TABLE WIDTH = "100%" HEIGHT = "100%" bgcolor = "#bbccaa" >
                        <b><td><font face = "Arial" size = "6" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;English Home</font></td></b>
                  </TABLE>
</TABLE>
</BODY>
</HTML>

contact_us.html

<HTML>
<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<TABLE ALIGN="center" NAME="outertable" ID="outertable" BGCOLOR = "#f3f8f8">
                  <TABLE WIDTH = "100%" HEIGHT = "100%" BGCOLOR = "#fe11f8">
                        <b><td align = "center" > <font face = "Arial" size = "6" color = "#000000"> Contact Us in English</font></b></td>
                  </TABLE>
</TABLE>
</BODY>
</HTML>

ASKER CERTIFIED SOLUTION
Avatar of seanpowell
seanpowell
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In clearer english :-)
Add the target attribute to "replace" the entire frameset.
Avatar of wzhu58
wzhu58

ASKER

Thank you georgemarian.

You're welcome!