## Rozwijana lista z odsyłaczami 1

Odsyłacze wczytują stronę do tej samej ramki.

Skopiuj poniższy kod

    <script language="JavaScript">
    <!--
    // origjnal code by Bill Trefzger 12/12/96
    function go(){
    if (document.selecter.select1.options[document.selecter.select1.selectedIndex].value != "none") {
    location = document.selecter.select1.options[document.selecter.select1.selectedIndex].value
     }
    }
    //-->
    </script>

    <script language="JavaScript">
    <!--
    document.write('<form name="selecter"><select name="select1" size=1>');
    document.write('<option value=none>Wybierz firmę..');
    document.write('<option value=none>--------------------');
    document.write('<option value="http://www.microsoft.com">Microsoft');
    document.write('<option value="http://www.corel.com">Corel');
    document.write('<option value="http://www.novell.com">Novell');
    document.write('<option value="http://www.ibm.com">IBM');
    document.write('<option value="http://www.netscape.com">Netscape');
    document.write('</select>');
    document.write('<INPUT TYPE="button" VALUE="Hop !" onclick="go()">');
    document.write('</form>');
    //-->
    </script>