Auswahllisten und Text
Björn Freitag
- javascript
Hallo,
ich habe eine Auswahlliste geschrieben. Beim Aussuchen in dieser Auswahlliste soll im Textbereich, das gleiche weider kommen.
Script:
<form name="Formular">
<select name="netz" size="1">
<option selected value="http://">HTTP</option>
<option value="ftp://">FTP</option>
<option value="gopher://">Gopher</option>
<option value="file:///">File</option>
<option value="https://">HTTPS</option>
</select>
<input type="Text" name="Internet" size="60" maxlength="60" value="document.Formular.netz.value">
<button name="open" onclick="parent.parent.location.href=document.Formular.Internet.value">Öffnen</button>
Bye
Björn
Hallo,
Anhang
<form name="Formular">
<select name="netz" size="1">
<option selected value="http://">HTTP</option>
<option value="ftp://">FTP</option>
<option value="gopher://">Gopher</option>
<option value="file:///">File</option>
<option value="https://">HTTPS</option>
</select>
<input type="Text" name="Internet" size="60" maxlength="60" value="document.Formular.netz.value">
<button name="open" onclick="parent.parent.location.href=document.Formular.Internet.value">Öffnen</button>
Im Textfeld zeigt er mir document.Formular.netz.value an, aber nicht http://
Bye