lolwut
29-12-2007, 07:14 PM
Right well, what I want is like a thing where they select the site from a drop down form box, and it takes them there.
Here's my code:
<html><head>
<script type="javascript">
var to = "";
function goTo(to)
{
window.location=to;
}
</script>
</head>
<body>
Where would you like to go today?: <select>
<option onClick="goTo('http://google.co.uk');">Google UK</option>
<option onClick="goTo('http://google.fr');">Google France</option>
</select>
</body>
</html>Any help appreciated.
EDIT: Nevermind, I've got it. :)
Moved by Agesilaus (Forum Moderator) from Design & Development: Please post in the correct forum next time. :)
Here's my code:
<html><head>
<script type="javascript">
var to = "";
function goTo(to)
{
window.location=to;
}
</script>
</head>
<body>
Where would you like to go today?: <select>
<option onClick="goTo('http://google.co.uk');">Google UK</option>
<option onClick="goTo('http://google.fr');">Google France</option>
</select>
</body>
</html>Any help appreciated.
EDIT: Nevermind, I've got it. :)
Moved by Agesilaus (Forum Moderator) from Design & Development: Please post in the correct forum next time. :)