Q1.Write a java script code to
accept a string and write a function to calculate length of string.
<html>
<head>
</head>
<body>
<script
type = "text/javascript">
var
str = prompt("Enter a String",0);
document.write("str.length
is:" + str.length);
</script>
</body>
</html>
Q2.Create HTML page to Divide the
frames in to different sections as shown below and add appropriate HTML files
to each frame.
<html>
<head>
<title>
Frame Example </title>
</head>
<frameset
rows="20%,40%,40%">
<frame
src="header.html" name="frame1">
<frameset
cols="50%,50%">
<frame
src="a.html" name="frame2">
<frame
src="b.html" name="frame3">
</frameset>
<frameset
cols="30%,35%,35%">
<frame
src="c.html" name="frame4">
<frame
src="d.html" name="frame5">
<frame
src="e.html" name="frame6">
</frameset>
</frameset>
</html>