<html>
<head>
<title>JavaScript sample code</title>
</head>
<body>
<h1>Ciclos</h1>
<script language="JavaScript" type="text/javascript">
<!--
var i = 1;
while( i <= 10 ) {
document.write("Esta é a linha " + i + "<br>\n");
i++;
}
//-->
</script>
</body>
</html>