It's been forever and a day since I used frames. I'm sure I have it all plugged in right, but I've never used JavaScript w/ frames. Do I have the links coded properly in the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd">
<!--leftFrame.html-->

<html>
<head>
<title />Left Frame</title>
<script type="text/javascript">

</script>
</head>
<body>

<p>
<a href="" onclick="main.frames[2].document.open(ar.html);main.frames[2].document.close();return false;"><img src="9-AR.jpg" border="0" target="main"></a><br />
<a href="" onclick="main.frames[2].document.open(ia.html);main.frames[2].document.close();return false;"><img src="9-IA.jpg" border="0" target="main"></a><br />
<a href="" onclick="main.frames[2].document.open(il.html);main.frames[2].document.close();return false;"><img src="9-IL.jpg" border="0" target="main"></a><br />
<a href="" onclick="main.frames[2].document.open(ks.html);main.frames[2].document.close();return false;"><img src="9-KS.jpg" border="0" target="main"></a><br />
<a href="" onclick="main.frames[2].document.open(main.html);main.frames[2].document.close();return false;"><img src="9-Main.jpg" border="0" target="main"></a><br />
<a href="" onclick="main.frames[2].document.open(mo.html);main.frames[2].document.close();return false;"><img src="9-MO.jpg" border="0" target="main"></a><br />
<a href="" onclick="main.frames[2].document.open(ne.html);main.frames[2].document.close();return false;"><img src="9-NE.jpg" border="0" target="main"></a><br />
</p>

</body>
</html>

Also, here is the main html doc:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd">
<!--StateStatistics.html-->

<html>
<head>
<title />State Statistics</title>
<script type="text/javascript">

window.defaultStatus = "State Statistics";

</script>
</head>
<body>

<frameset cols="20%, 80%" frameborder="no" border="0">
	<frame src="leftFrame.html" name="left" />
	<frame src="main.html" name="main" />
</frameset>

</body>
</html>

» You can't use the <body> tags when using <frameset> tags. Remove those from your main.html » You are referring to the frames in a wrong manner. Use the 'top' property of the window object to refer to the parent window. You can then access the frames using top.frames['frameName']. » For your document.write to write to the desired frame and not the current frame, use the target property of the <a> tag and set it to the frame you want. Something like: <a href="#" target="right" onclick="something();">Linky</a> » <title />State Statistics</title> is an incorrect way of writing the <title> tag.

Okay, got if fixed and working. Thanks a lot!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.