Keep in mind though that people who can't use a mouse won't be able
to use this. So modify it and add a Go button.
Remove onchange="launchit()" from the select tag and make the Go
button an onclick="launchit()" event to fire the function.
Here's an example that uses the Go button:
<b>Select a Site or Function: </b><select id="setit">
<option value="">Select one</option>
<option
value="javascript:window.open('
http://www.altavista.com')">AltaVista</option
<option
value="javascript:window.open('
http://www.yahoo.com')">Yahoo</option>
<option
value="javascript:window.open('
http://www.google.com')">Google</option>
</select><input type="button" value="Go"
onclick="launchit()"></input>
<script language="javascript">
function launchit(){
eval(setit.options[setit.selectedIndex].value);
}
</script>
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
> There are several
ways to do that and they need javascript. Here's one that doesn't
need a Go > button, it senses what the user has clicked on. >
<p align="center"><b>Select a Site or Function: </b><select
id="setit" onchange="launchit()"> > <option value="">Select
one</option> > <option
value="javascript:window.open('
http://www.altavista.com')">AltaVista</option
value="javascript:window.open('http://www.yahoo.com')">Yahoo said:
value="javascript:window.open('http://www.google.com')">Google said:
</select> > > <script language="javascript"> > function launchit(){
eval(setit.options[setit.selectedIndex].value);
}
</script>
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
DXB said:
i want 5 catagories in a drop down box, with a "go"
botton next to it. when i specify the value "url" of the
selections, the go button still doesnt do anything. i
want it to jump to that selections page. suggestions ?
[microsoft.public.frontpage.client]