Hallo, warum funktioniert das nicht?
JavaScript
<html>
<head>
<script type="text/javascript">
function schleife(){
var integ = parseInt(document.form.vorname.value);
var teletext = window.open(" "," "," ");
var i = 1;
do{
erg = i*i;
teletext.document.write(erg+"; ");
i = i+1;
}while(i<=integ);
</script>
</head>
<body>
<form name="form">
<input type="text" name="vorname" value="1337">
<input type="button" name="nachname" value="**************" onclick="schleife()">
</form>
</body>
</html>
Alles anzeigen