Click to See Complete Forum and Search --> : link to frame
gmpurple
01-12-2004, 10:50 AM
I am trying to figure out how to link to my website from a place where it is referenced and show my frameset (index.htm) with a certain file (file.htm) in the main frame, other than the default. Any suggestions would be greatly appreciated!
Lotus
01-12-2004, 10:52 AM
Add target="NameOfYourFrame" in the link code.
gmpurple
01-12-2004, 11:10 AM
The place I am linking from is someone else's website, not within my own code. If the link is 'www.file.htm' it will open up only that file. If I put 'www.index.htm' as the link it will open the frameset but not with 'file.htm' in the main frame. Is there something I need to add to the link of 'www.index.htm' to get it to show the main frame with the file 'file.htm' in it?
iniquity101
01-12-2004, 12:06 PM
can you post your index.htm code
gmpurple
01-12-2004, 12:09 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Albany, NY Department of Public Safety</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<frameset rows="160,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frameset rows="*" cols="180,*" framespacing="0" frameborder="NO" border="0">
<frame src="corner.htm" name="topFrame1" scrolling="NO" noresize >
<frame src="top.htm" name="topFrame" scrolling="NO" noresize >
</frameset>
<frameset rows="*" cols="180,*" framespacing="0" frameborder="NO" border="0">
<frame src="left.htm" name="leftFrame" scrolling="yes" noresize>
<frame src="main.htm" name="mainFrame">
</frameset>
</frameset>
<noframes>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
</body></noframes>
</html>