Introduction:-
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:-
and make this between the BODY tags:-Code:<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function GotoURL(form){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } // End --> </SCRIPT>
Explanation:-Code:<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>
Include all the URL's here!Code:....... <option value="">Select where you want to go <option value="http://www.time4videos.net.tc">Time4Videos <option value="http://www.codecall.net">CodeCall .......
Conclusion:-
Code is attached, and feedback is welcome!
Last edited by TcM; 01-06-2007 at 07:02 AM.
You forgot something lol
</option>
Fix this ASAP. I don't know but I use </option>. If it's not needed, then ok.
I was using </option> always dude, you may find a toolbar at the top of XTRaze.NET - Preloading images.... which is Edited by me for myself. And I was using </option> there too. I just saw this on another site and made a lot of changes and still going on to make this good for me.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks