Here I will show you how to go to different websites from a drop down menu
Let's Begin:-
Make this code between the HEAD tags:-
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function GotoURL(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
and make this between the BODY tags:-
<form name="form"> <select name="site" size=1> <option value="">Select where you want to go <option value="http://www.time4videos.net.tc">Time4Videos <option value="http://www.codecall.net">CodeCall </select> <input type=button value="Go there" onClick="javascript:GotoURL(this)"> </form>
Explanation:-
....... <option value="">Select where you want to go <option value="http://www.time4videos.net.tc">Time4Videos <option value="http://www.codecall.net">CodeCall .......
Include all the URL's here!
Conclusion:-
Code is attached, and feedback is welcome!


Sign In
Create Account



Back to top









