Alexandre007 Posted July 27, 2007 Share Posted July 27, 2007 I juste input number page 1 , page 2 , page 3 , page 4 i want change that by really link how to do ? ;<body><form name="list link"><select size="3" name=link<option value="lien 1"selected>lien 1<option value="link 2">link 2<option value="link 3">link 3<option value="link 4">link 4<option value="page 1">page 1<option value="page 2">page 2<option value="page 3">page 3<option value="page 4">page 4</select><input type="bouton"value="choice your link"onclick=choice one link</form></body> Link to comment Share on other sites More sharing options...
Synook Posted July 27, 2007 Share Posted July 27, 2007 Err... so as I understand it, when someone clicks a select option they are transported to that page? <script type="text/javascript">function link(page) {window.location = page;}</script><select size="3" name="link"><option onclick="link('page1.html')">Link 1</option><option onclick="link('page2.html')">Link 2</option><option onclick="link('page3.html')">Link 3</option><!-- etc... --></select> Remember, some XHTML compatibility tips:-Always put quotation marks around tag attributes, for example <select name="link"> not <select name=link>-Always close option tags (as well as list items, etc.), so where you have <option> always end with </option> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.