<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>CW Prototype Dersleri (ders 2)</title>
	<meta name="author" content="Serkan">
	<script src="/jslibs/prototype.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		function serkan_addToList()
		{
			value = $("text").value;
			if(value != '')
			{
				$("appleList").insert('<li>'+value+'</li>');
			}
		}
	</script>
</head>
<body>
	<ul id="appleList">
		<li>Macbook</li>
		<li>Macbook Pro</li>
		<li>iPhone</li>
	</ul>
	<input type="text" id="text" />
	<input type="button" value="Listeye Ekle" onClick="serkan_addToList();" />
	
</body>
</html>