14. Develop a webpage for implementing menus
<!DOCTYPE html>
<html>
<head>
<title> Pull Down Menu</title>
<script type="text/javascript">
function Display(Ch)
{
MyPage = Ch.options[Ch.selectedindex].value
if(MyPage !="")
{
window.location = MyPage
}
}
</script>
</head>
<body onload="document.form1.MyMenu.selectedindex=0">
<form action=""name="Form1">
<select name="MyMenu"onchnage="Display(this)">
<option>books</option>
<option
value="Fiction.html">Fiction</option>
<option value="NonFiction.html">
Non Fiction</option>
</select>
</form>
</body>
</html>
<html>
<head>
<title> Pull Down Menu</title>
<script type="text/javascript">
function Display(Ch)
{
MyPage = Ch.options[Ch.selectedindex].value
if(MyPage !="")
{
window.location = MyPage
}
}
</script>
</head>
<body onload="document.form1.MyMenu.selectedindex=0">
<form action=""name="Form1">
<select name="MyMenu"onchnage="Display(this)">
<option>books</option>
<option
value="Fiction.html">Fiction</option>
<option value="NonFiction.html">
Non Fiction</option>
</select>
</form>
</body>
</html>
Practical Lists with Source Code :
- Writesimple JavaScript with HTML for arithmetic expression evaluation and messageprinting.
- Develop JavaScript to use decision making and looping statements.
- Develop JavaScript to implement Array functionalities.
- DevelopJavaScript to implement functions.
- DevelopJavaScript to implement strings.
- Createa webpage using form elements.
- Createa webpage to implement form event Part-I.
- Createa webpage to implement form event Part-II.
- Developa webpage using Intrinsic Java Function.
- Developa webpage for creating session and persistent cookies observe the effects withBrowser cookie settings.
- Developa webpage for placing the window on the screen and working with child window.
- Developa webpage for validation of form fields using regular expressions.
- Create a webpage with Rollovers Effect.
- Developa webpage for implementing menus.
- Developa webpage for implementing Status bars and Web Page Protection.
- Developa webpage for implementing Slideshow, Banner.