|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a list box on my html form. Depending on which value is selected in the list box, I want to display a different page (the pages displayed will be .idc pages).
Does anyone know how this is possible as I have been trying to find out and can't! I am quite new to this so it is probably simple! Thanks Jo |
|
#2
|
|||
|
|||
|
put this in the <script> section
function goPage() { location=document.lbox.Pages.options[document.lbox.Pages.selectedIndex].value } and this inside the <body> <form name="lbox"> <select name="Pages" size="1" onChange="GoPage()"> <option value="page1.htm">P1</option> <option value="page2.htm">P2</option> <option value="page3.htm">P3</option> </select> To change the frame where the window will be opened, use self.location, parent.location, mainFrame.location, ... or add a new parameter to the goPage function. |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > I need to load different pages depending on the value of a list box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|