Problem changing frame source with javascript...
Posted: Thu Jun 09, 2005 5:53 am
I have a HTML page that creates 3 frames, as shown below:
and within the controlPanelNav.html page which is in the "header_frame" I have a button which is calling a javascript function within the controlPanelNav.html page, all I want to be able to do is change the HTML page displayed in the "main_frame" to another. An example of the code I'm using is below, what am I doing wrong??
cheers
Simon
Code: Select all
<!DOCTYPE HTML PUBLIC "e;-//W3C//DTD HTML 4.01 Transitional//EN"e;>
<html lang="e;en"e;>
<head>
<title><!-- Insert your title here --></title>
</head>
<frameset border="e;0"e; rows="e;100,100%,40"e;>
<frame SCROLLING="e;NO"e; noresize="e;noresize"e; name="e;header_frame"e; src="e;controlPanelNav.html"e;>
<frame noresize="e;noresize"e; name="e;main_frame"e; src="e;login.html"e;>
<frame SCROLLING="e;NO"e; noresize="e;noresize"e; name="e;footer_frame"e; src="e;footer.html"e;>
</frameset>
</html>Code: Select all
function getNewLocation()
{
window.main_frame.location = "e;loggedOut.html"e;;
}Simon