CODE
<input type="radio" name="searchtype" onclick="changeAction(http://www.google.com/search)">Web
<input type="radio" name="searchtype" onclick="this.searchbox.action=http://images.google.com/images">Images
<input type="radio" name="searchtype" onclick="http://www.youtube.com/results">Videos
<input type="radio" name="searchtype" onclick="this.searchbox.action=http://images.google.com/images">Images
<input type="radio" name="searchtype" onclick="http://www.youtube.com/results">Videos
So here is the entire code for my page:
CODE
<html>
<body>
<form method="get" name="searchbox" action="this_value_should_change">
<input type="text" name="q" size="30" maxlength="255" value="" /><br>
<input type="radio" name="searchtype" onclick="this.searchbox.action=http://www.google.com/search">Web<br>
<input type="radio" name="searchtype" onclick="this.searchbox.action=http://images.google.com/images">Images<br>
<input type="radio" name="searchtype" onclick="this.searchbox.action=http://www.youtube.com/results">Videos<br>
<input type="submit" />
</form>
</body>
</html>
<body>
<form method="get" name="searchbox" action="this_value_should_change">
<input type="text" name="q" size="30" maxlength="255" value="" /><br>
<input type="radio" name="searchtype" onclick="this.searchbox.action=http://www.google.com/search">Web<br>
<input type="radio" name="searchtype" onclick="this.searchbox.action=http://images.google.com/images">Images<br>
<input type="radio" name="searchtype" onclick="this.searchbox.action=http://www.youtube.com/results">Videos<br>
<input type="submit" />
</form>
</body>
</html>
The problem is that the form's action is not set when you check one of the radio buttons. Please help as I have tried everything I know how to. Thanks in advance!