C
COHENMARVIN
Folks,
I wrote a simple javascript script, but it doesn't work.
First I have a web page that uses frames:
=====================
<html>
<frameset rows="10%,90%">
<frame src="frame1.htm" name="frameName1">
<frame src="frame2.htm" name="frameName2">
</frameset>
</html>
=====================
Then within the page 'frame1', I try to have a function that fills page
'frame2'. The function is:
<script LANGUAGE="JAVASCRIPT">
function ShowSeminars()
{
/*parent.framename2.location.href = "http://www.amazon.com";*/
parent.framename2.location.href = "frame3.htm";
}
</script>
I have a button that calls the function.
But the function does not work. First I thought the reason was that it
links to outside websites, but the code doesn't even work when it links
to 'frame3.htm' (a local page).
I tried 'firefox's javascript console to tell me whats wrong, and it
says something like 'parent.framename2' has no properties.
Thanks,
Marvin
I wrote a simple javascript script, but it doesn't work.
First I have a web page that uses frames:
=====================
<html>
<frameset rows="10%,90%">
<frame src="frame1.htm" name="frameName1">
<frame src="frame2.htm" name="frameName2">
</frameset>
</html>
=====================
Then within the page 'frame1', I try to have a function that fills page
'frame2'. The function is:
<script LANGUAGE="JAVASCRIPT">
function ShowSeminars()
{
/*parent.framename2.location.href = "http://www.amazon.com";*/
parent.framename2.location.href = "frame3.htm";
}
</script>
I have a button that calls the function.
But the function does not work. First I thought the reason was that it
links to outside websites, but the code doesn't even work when it links
to 'frame3.htm' (a local page).
I tried 'firefox's javascript console to tell me whats wrong, and it
says something like 'parent.framename2' has no properties.
Thanks,
Marvin