[HC]Dalli: Auswahlmenü

Wie kann ich hier einen Link in einem Neuen Fenster öffnen lassen??

<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 bgcolor="#EEEEEE">
<form action=""><select size=1 name="Auswahl"
  onChange="Go(this.form.Auswahl.options[this.form.Auswahl.options.selectedIndex].value)"
  style="width:250px; background-color:#FFFFE0; font-size:9pt; font-family:Arial,sans-serif;"
  width="250">
<option value="Mail3.php">Anfrage</option>
<option value="Mail2.php">Bestellungsändernung</option>
<option value="Mail1.php">Probleme</option>
</select></form>
</body>
</html>

  1. Hallo [HC]Dalli,

    Wie kann ich hier einen Link in einem Neuen Fenster öffnen lassen??

    Indem du als target _blank angibst.
    Du willst aber wohl aus jener Selectbox heraus ein neues Fenster öffnen. Das sind aber keine Links. Also passe deine Go-Funtion dahingehend an, dass ein neues Fenster geöffnet wird. window.open() http://de.selfhtml.org/javascript/objekte/window.htm#open zeigt dir, wie's geht.
    Denke daran, dass nicht jeder JS hat und du somit für ein alternativ-Menü sorgen musst.

    <body bgcolor="#EEEEEE">

    Verwende auch hier CSS.
    px und pt sind eher ungute Größenangaben, verwende relative angaben.

    Grüße
      David

    --
    >>Nobody will ever need more than 640k RAM!<<
    1981 Bill Gates