Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlink not working properly

Status
Not open for further replies.

DKL01

Programmer
Sep 14, 2000
233
US
In the below code when I click on M8 ( hyperlink ) on Home_contents.html ( one of the frames in Home_Main.html )the browser overlaps the contens of m8_main.html on Home_main.html.
But if the click on the square block then it's working fine.
What could be the problem ?

Thanks

Home_Main.html
------------------------------
<html>
<head>
<title>Homepage</title>
</head>

<FRAMESET COLS=&quot;20%,*&quot; border=0>

<FRAME SRC=&quot;Home_Contents.html&quot;>

<FRAMESET ROWS=&quot;13%,*&quot; >

<FRAME SRC=&quot;Home_Title.html&quot;>
<FRAME SRC=&quot;Home_Preface.html&quot;>


</FRAMESET>
</FRAMESET>

</html>


Home_Contents.html
-------------------------------

<html>
<body >

<form name=&quot;form1&quot;>

<TABLE BORDER=0 WIDTH=100% CELLSPACING=0 CELLPADDING=0 BGCOLOR=#FFFFFF>

<TR><TD STYLE='Cursor:hand' OnClick='top.location.href = &quot;m8_main.html&quot;' WIDTH=&quot;10%&quot; BGCOLOR=#996699><SPACER TYPE=BLOCK WIDTH=12></TD><TD WIDTH=&quot;90%&quot;>  <A HREF='m8_main.html'>M8</A><TD></TR>
<TR><TD COLSPAN=2 HEIGHT=8><SPACER TYPE=BLOCK HEIGHT=8></TD></TR>

<TR><TD STYLE='Cursor:hand' OnClick='top.location.href = &quot;m9_main.asp&quot;' WIDTH=&quot;10%&quot; BGCOLOR=#996699><SPACER TYPE=BLOCK WIDTH=12></TD><TD WIDTH=&quot;90%&quot;>  <A HREF='m9_main.html'>M9</A><TD></TR>
<TR><TD COLSPAN=2 HEIGHT=8><SPACER TYPE=BLOCK HEIGHT=8></TD></TR>


</TABLE>

</form>
</body>
</html>

m8_main.html
-------------------------
<html>
<head>
<title>Homepage</title>
</head>

<FRAMESET COLS=&quot;20%,*&quot; border=0>

<FRAME SRC=&quot;M8_Contents.html&quot;>

<FRAMESET ROWS=&quot;13%,*&quot; >

<FRAME SRC=&quot;M8_Title.html&quot;>
<FRAME SRC=&quot;M8_Preface.html&quot;>


</FRAMESET>
</FRAMESET>

</html>
 
You should also strip all HTML code out of your frameset pages. They should only contain frameset information
 
WebGodiva, that is not true. You must have <html></html> tags, and you must have <head></head> tags. You should also have <title></title> tags if you want your page to have a title... it will not assume the title of one of your frames. You should also have a <noframes><body></body></noframes> section for compatibility with frameless browsers.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top