Function/SelectedIndex

admin

Administrator
Staff member
:confused:

I'm having a very difficult time with JavaScript. I am new to it and I just can't grab the concept. One of the things I'm having trouble with are functions and selectedIndexes.

For example,

what would I write if I was asked to do the following

"write a function named jump_to_link(weblist)
"within the function, create a variable named url_number that is equal to the selectedIndex property of the weblist variable"

I had the following but its not working.

function jump_to_link(weblist)}
var url_number=selectedIndex(weblist).value
url_number[0]="http://yoga.htm"
also I'm suppose to create a URL to <a> tags that runs a JavaScript command to reload the Web page. I understood that to mean that I should put the following in quotations marks select name="a href#"

Can anyone help?
 
Back
Top