<!DOCTYPE html>
<html>
<body>
<input type="text" id="rakam" />
<button onclick="olustur()">Nesne Oluştur</button>
<script>
function olustur() {
var sayi = document.getElementById('rakam').value;
for (i = 0; i < sayi; i++) {
var elem = document.createElement('input');
elem.setAttribute('id', 'rakam' + i);
elem.setAttribute('type', 'text');
elem.setAttribute('style', 'display:block; margin-top:10px;');
document.body.appendChild(elem);
}
}
</script>
</body>
</html>