|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can use onChange in select?
Do you think i can use onChange on a select table?
But only the option 3 will change location. Ex: <Form name="form1" method="post" action=""> <select name="table"> <option value="1"> Choice 1</option> <option value="2"> Choice 2</option> <option value="3" onChange="location.href='homepage.html'"> Choice 3 to homepage</option> </select> <option type="submit" value"submit"> |
|
#2
|
|||
|
|||
|
You can only put onChange in the <select> tag itself, but you could make it fire a javascript function that checks the selectedIndex property and either redirects to the page in question or... does nothing..
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Can use onChange in select? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|