Thread Link in Auswahlfeld: OnClick in <slect>-Tag? (8 answers)
Opened by Froschpopo at 2004-01-02 18:31

jan
 2004-01-02 20:14
#25394 #25394
User since
2003-08-04
2536 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<title>asasd</title>
<script language="JavaScript">
<!--
function open_url(what)
{
alert('http://localhost/' + what + '.html');
// location.href=url;
}
-->
</script>
</head>
<body>
<form>
<select name="profil" size="10" onchange="open_url(this[this.selectedIndex].value);">
<option value="home">Test</option>
<option value="home2">Test2</option>
</select>
</form>
</body>
</html>


rtfm!

View full thread Link in Auswahlfeld: OnClick in <slect>-Tag?