?
Solved

HTML Frames

Posted on 2003-11-10
4
Medium Priority
?
203 Views
Last Modified: 2010-04-09
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>

0
Comment
Question by:wzhu58
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 1000 total points
ID: 9716776
Add the target attribute to reload the entire frameset:

<font face="Arial" size ="2"><a href = "index.html" target="_top">Home Page</font></a></b>
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9716793
In clearer english :-)
Add the target attribute to "replace" the entire frameset.
0
 

Author Comment

by:wzhu58
ID: 9717001
Thank you georgemarian.

0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9717130
You're welcome!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question