Drop Down box

L

Lee Newson

Hi,

i have a drop down list box, the items of which are the titles of web sites
and the respective values for the items are the web site url's. next to the
box i have a 'go' button which a user will press to take him or her to the
selected site, however i have no idea how to code this, can anyone help/
point me to a tutorial or some such.

thanks for any help in advance

Lee
 
L

Lee Newson

Sorry forgot to say that i looked at the 'Drop down link to a new page'
thread in this group, but it does not work (and if it makes any difference
it is a sharepoint portal server page that the box is on)

Lee
 
S

Steve Easton

Try this:

<p align="center"><b>Select a Site </b><select id="setit">
<option value="">Select one</option>
<option value="http://www.altavista.com">AltaVista</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.google.com">Google</option></select>
<input type="button" value="Go"
onclick="window.open(setit.options[setit.selectedIndex].value)">
</p>

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
L

Lee Newson

cheers Steve


Steve Easton said:
Try this:

<p align="center"><b>Select a Site </b><select id="setit">
<option value="">Select one</option>
<option value="http://www.altavista.com">AltaVista</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.google.com">Google</option></select>
<input type="button" value="Go"
onclick="window.open(setit.options[setit.selectedIndex].value)">
</p>

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer

Hi,

i have a drop down list box, the items of which are the titles of web sites
and the respective values for the items are the web site url's. next to the
box i have a 'go' button which a user will press to take him or her to the
selected site, however i have no idea how to code this, can anyone help/
point me to a tutorial or some such.

thanks for any help in advance

Lee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top