Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <title>New Page 1</title>
- <script type="text/javascript">
- function NavigateUp(/*As String*/ elementID)
- {
- var theSelector = document.getElementById(elementID);
- var theIndex = theSelector.selectedIndex;
- var theUrl = theSelector.options[theIndex].value;
- window.location.href = theUrl;
- return true;
- }
- </script>
- </head>
- <body>
- <h1 style="background-color:red">My First Web Page</h1>
- <body style="background-color:lightblue">
- <center>
- <form>
- <select SelectedIndex="0" id="SelectionDropDownList"
- onchange="NavigateUp(this.id);">
- <option value="#">Select Option</option>
- <option value="example1.html">Change Image</option>
- <option value="example2.html">Hide Text</option>
- <option value="example3.html">On Mouse Over</option>
- <option value="example4.html">Onload</option>
- <option value="example5.html">Autofill</option>
- <option value="example6.html">Mouse Over</option>
- </select>
- </center>
- </body>
- </html>
Add Comment
Please, Sign In to add comment