Evo jedan primer koji sam upravo napravio.
Code:
<html>
<head>
<title>Primer</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
function formiraj(){
f=document.forma;
f.opcije.length=0
f.opcije.length=f.opcije.length+1
f.opcije.options[0].text = f.o1.value
f.opcije.options[0].values = f.o1.value
f.opcije.length=f.opcije.length+1
f.opcije.options[1].text = f.o2.value
f.opcije.options[1].values = f.o2.value
f.opcije.length=f.opcije.length+1
f.opcije.options[2].text = f.o3.value
f.opcije.options[2].values = f.o3.value
}
</script>
</head>
<body>
<center>
<form action="" method="post" name="forma">
1 <input name="o1" type="text"> <br>
2 <input name="o2" type="text"> <br>
3 <input name="o3" type="text"> <br>
<input type="button" name="Button" value="Formiraj" onClick="formiraj()">
<br><br><br>
<select name="opcije"></select>
</form>
</center>
</body>
</html>
Mozes da stavis i da se podaci iz prompta upisuju u listbox.
Ovde imas primer kako radi promt
Ovde Pogledaj kod strane i videces kako mozes da napravis dodavanje(Add url) i brisanje(Remove) iz listboxa
Flash komponenta za atraktivan prikaz vesti na sajtu:
www.flash-news-ticker.com