Veröffentlicht 12. Mai 200322 j Hallo zusammen. Ich hab folgenden Quelltext <html> <head> <title>Test</title> <script type="text/javascript"> <!-- function Go(x) { if(x == "nothing") { document.forms[0].reset(); document.forms[0].elements[0].blur(); return; } else if(x == "end") top.location.href = parent.frames[1].location; else { parent.frames[1].location.href = x; document.forms[0].reset(); document.forms[0].elements[0].blur(); } } //--> </script> </head> <body background="../../../images/bg-image_01.gif" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <form action=""><select size=1 name="Auswahl" onChange="Go(this.form.Auswahl.options[this.form.Auswahl.options.selectedIndex].value)" style="width:130px; background-color:#FFFFFF; font-size:9pt; font-family:Arial,sans-serif;" width="250"> <option value="nothing">[ bitte auswählen! ]</option> <option value="nothing">------------------------</option> <option value="tralala.html">tralala</option> </select> </form> </body> </html> Wie setze ich bei dem link einen target?
16. Mai 200322 j Also das ist wohl nicht so elegant. Wie wärs, wenn du bei dem top.location.href das top weglöschst? Das geht nämlich nur mit Frames.
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.