FRAMESET FOR SEARCH ENGINE
PROGRAM
MAIN.HTML
<html>
<head>
<frameset cols="50%, 50%">
<frame src="left.html" name="left_frame">
<frame src="right.html" name="right_frame">
</frameset>
</head>
</html>
LEFT.HTML
<html>
<head>
<script language="vbscript">
function yahoo_open()
window.open("yahoo.html")
end function
function altavista_open()
window.open("altavista.html")
end function
function infoseek_open()
window.open("infoseek.html")
end function
</script>
</head>
<body>
<h3>LEFT FRAME</h3><br/><br/><br/>
<form>
SELECT AN OPTION:<br/>
<p> <a href="yahoo.html" target="right_frame">
<input type="radio" on Click="yahoo_open()" value="1" name="a" checked language="vbscript">YAHOO</a></p>
<p> <a href="altavista.html" target="right_frame">
<input type="radio" on Click="altavista_open()" value="2" name="a" language="vbscript">ALTAVISTA</a></p>
<p> <a href="infoseek.html" target="right_frame">
<input type="radio" on Click="infoseek_open()" value="3" name="a"language="vbscript">INFOSEEK</a></p>
</form>
</body>
</html>
RIGHT.HTML
<html>
<body>
<h1>
right frame
</h1><br/><br/>
<h3>WELCOME TO THIS SITE</h3>
</body>
</html>
YAHOO.HTML
<html>
<head>YAHOO SEARCH ENGINE</head>
<body>
<h1><center>YAHOO SEARCH ENGINE</CENTER></H1>
</body>
</html>
ALTAVISTA.HTML
<html>
<head>ALTAVISTA SEARCH ENGINE</head>
<body>
<h1><center>ALTAVISTA SEARCH ENGINE</CENTER></H1>
</body>
</html>
INFOSEEK.HTML
<html>
<head>INFOSEEK SEARCH ENGINE</head>
<body>
<h1><center>INFOSEEK SEARCH ENGINE</CENTER></H1>
</body>
</html>
OUTPUT:
No comments:
Post a Comment