newbee function call question...

M

Mel

I have a selection box with 3 values. what i need is to pass 3 urls to
a function that has a switch statement and based on the selection
index goes on one of the tree urls.

Question is how do i pass these three urls to the function i already
have ? The list size may change and does not necessary have to remain
as 3

thanks for lifting a newbee to greater heights
 
E

Evertjan.

Mel wrote on 05 apr 2007 in comp.lang.javascript:
I have a selection box with 3 values. what i need is to pass 3 urls to
a function that has a switch statement and based on the selection
index goes on one of the tree urls.

Question is how do i pass these three urls to the function i already
have ? The list size may change and does not necessary have to remain
as 3

thanks for lifting a newbee to greater heights

Show your code so far, keeping it simple,
most of us in this NG are not in the business of free programming.
 
S

scripts.contact

I have a selection box with 3 values. what i need is to pass 3 urls to
a function that has a switch statement and based on the selection
index goes on one of the tree urls.

Question is how do i pass these three urls to the function i already
have ? The list size may change and does not necessary have to remain
as 3

<select onchange="runFunc(this)">
<option value="http://web.address1.com"> Go to URL 1</option>
<option value="http://web.address2.com"> Go to URL 2</option>
<option value="http://web.address3.com"> Go to URL 3</option>
</select>
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top