A
Alain Bourgeois
Dear all,
I'm new to javaScript. I would like to know why this code does not work:
<html>
<head></head>
<frameset cols="200,*" frameborder="1">
<frame name="contents" src="menu.htm">
<script language="JavaScript1.1" type="text/javascript">
document.write("<frame name=\"prod\" src=\"prod01.htm\">");
</script>
</frameset>
</html>
I would like to pass a parameter to the html page (in url) which would
tell me which html src to use in the "prod" frame, but scripts doesn't
seem to run (nor to be run) in frameset section.
(http://prod01site.com would be redirected to
http://myglobalsite.com/index.html?product="prod1.htm", and would load
prod1.htm into "prod" frame).
Is there a way to do this?
Regards,
Alain
I'm new to javaScript. I would like to know why this code does not work:
<html>
<head></head>
<frameset cols="200,*" frameborder="1">
<frame name="contents" src="menu.htm">
<script language="JavaScript1.1" type="text/javascript">
document.write("<frame name=\"prod\" src=\"prod01.htm\">");
</script>
</frameset>
</html>
I would like to pass a parameter to the html page (in url) which would
tell me which html src to use in the "prod" frame, but scripts doesn't
seem to run (nor to be run) in frameset section.
(http://prod01site.com would be redirected to
http://myglobalsite.com/index.html?product="prod1.htm", and would load
prod1.htm into "prod" frame).
Is there a way to do this?
Regards,
Alain