sandipdev
05-18-2003, 07:28 PM
I am a Javascript newbie. I want to create three frames into my page on the fly . Say I have a page mypage.htm(which does not contain any frames). When a user visits it, three frames should be created in it. The three frames will have pages like page1.htm, page2.htm and page3.htm.
I have written a code but it does not work
Here it is:
<html>
<head>
<title>Untitled Document</title>
<script language="Javascript">
document.write("<frameset rows="3*,6*,1*" frameborder="NO" cols="*">" );
document.write("<frame src="page1.htm" name="head" frameborder="0" scrolling="no" noresize>");
document.write("<frame src="page2.htm" name="body" frameborder="0" scrolling="auto" noresize>");
documnet.write("<frame src="page3.htm" name="foot" frameborder="0" scrolling="no" noresize>");
</script>
</head>
<body>
This is mypage.htm
</body>
</html>
Can you please help me?
:rolleyes:
I have written a code but it does not work
Here it is:
<html>
<head>
<title>Untitled Document</title>
<script language="Javascript">
document.write("<frameset rows="3*,6*,1*" frameborder="NO" cols="*">" );
document.write("<frame src="page1.htm" name="head" frameborder="0" scrolling="no" noresize>");
document.write("<frame src="page2.htm" name="body" frameborder="0" scrolling="auto" noresize>");
documnet.write("<frame src="page3.htm" name="foot" frameborder="0" scrolling="no" noresize>");
</script>
</head>
<body>
This is mypage.htm
</body>
</html>
Can you please help me?
:rolleyes: