netsurf/test/js/core.infinite.html
2013-05-22 19:12:26 +01:00

24 lines
293 B
HTML

<html>
<head>
<title>Infinite loop</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>Infinite loop</h1>
<p>Before</p>
<script>
function bar(x) { return (x/2) + 1; }
n=1;
while (n < 3) {
n = bar(n);
}
</script>
</script>
<p>Afterwards</p>
</body>
</html>